35 #include <initializer_list>
50 template<
typename dtype>
55 for (
auto& ndarray : inArrayList)
59 finalShape = ndarray.shape();
61 else if (ndarray.shape().cols != finalShape.
cols)
67 finalShape.
rows += ndarray.shape().rows;
74 for (
auto& ndarray : inArrayList)
76 const Shape theShape = ndarray.shape();
77 for (
uint32 row = 0; row < theShape.
rows; ++row)
79 for (
uint32 col = 0; col < theShape.
cols; ++col)
81 returnArray(rowStart + row, col) = ndarray(row, col);
84 rowStart += theShape.
rows;
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:36
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
bool isnull() const noexcept
Definition: Core/Shape.hpp:113
uint32 rows
Definition: Core/Shape.hpp:44
uint32 cols
Definition: Core/Shape.hpp:45
Definition: Coordinate.hpp:45
NdArray< dtype > row_stack(const std::initializer_list< NdArray< dtype > > &inArrayList)
Definition: row_stack.hpp:51
std::uint32_t uint32
Definition: Types.hpp:40