56 template<
typename dtype>
65 std::vector<dtype> values;
66 for (
auto value : inArray)
70 values.push_back(value);
74 const uint32 middle =
static_cast<uint32>(values.size()) / 2;
84 for (
uint32 row = 0; row < inShape.
rows; ++row)
86 std::vector<dtype> values;
87 for (
uint32 col = 0; col < inShape.
cols; ++col)
91 values.push_back(inArray(row, col));
95 const uint32 middle =
static_cast<uint32>(values.size()) / 2;
97 returnArray(0, row) = values[middle];
105 const Shape inShape = transposedArray.
shape();
107 for (
uint32 row = 0; row < inShape.
rows; ++row)
109 std::vector<dtype> values;
110 for (
uint32 col = 0; col < inShape.
cols; ++col)
114 values.push_back(transposedArray(row, col));
118 const uint32 middle =
static_cast<uint32>(values.size()) / 2;
120 returnArray(0, row) = values[middle];