55 template<
typename dtype>
64 std::vector<dtype> values;
65 for (
auto value : inArray)
69 values.push_back(value);
73 const uint32 middle =
static_cast<uint32>(values.size()) / 2;
83 for (
uint32 row = 0; row < inShape.
rows; ++row)
85 std::vector<dtype> values;
86 for (
uint32 col = 0; col < inShape.
cols; ++col)
90 values.push_back(inArray(row, col));
94 const uint32 middle =
static_cast<uint32>(values.size()) / 2;
96 returnArray(0, row) = values[middle];
104 const Shape inShape = transposedArray.
shape();
106 for (
uint32 row = 0; row < inShape.
rows; ++row)
108 std::vector<dtype> values;
109 for (
uint32 col = 0; col < inShape.
cols; ++col)
113 values.push_back(transposedArray(row, col));
117 const uint32 middle =
static_cast<uint32>(values.size()) / 2;
119 returnArray(0, row) = values[middle];