35 #include <initializer_list>
48 template<
typename dtype>
53 for (
auto& ndarray : inArrayList)
57 finalShape = ndarray.shape();
59 else if (ndarray.shape().cols != finalShape.
cols)
65 finalShape.
rows += ndarray.shape().rows;
72 for (
auto& ndarray : inArrayList)
74 const Shape theShape = ndarray.shape();
75 for (
uint32 row = 0; row < theShape.
rows; ++row)
77 for (
uint32 col = 0; col < theShape.
cols; ++col)
79 returnArray(rowStart + row, col) = ndarray(row, col);
82 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:49
std::uint32_t uint32
Definition: Types.hpp:40