30#include <initializer_list>
51 template<
typename dtype,
typename Iterator>
59 const auto& ndarray = *iter++;
60 if (ndarray.shape().isnull())
67 finalShape = ndarray.shape();
69 else if (ndarray.shape().cols != finalShape.
cols)
75 finalShape.
rows += ndarray.shape().rows;
85 const auto& ndarray = *iter++;
86 const Shape theShape = ndarray.shape();
87 for (
uint32 row = 0; row < theShape.
rows; ++row)
89 for (
uint32 col = 0; col < theShape.
cols; ++col)
91 returnArray(rowStart + row, col) = ndarray(row, col);
94 rowStart += theShape.
rows;
109 template<
typename dtype>
123 template<
typename dtype>
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:135
A Shape Class for NdArrays.
Definition Core/shape.hpp:41
bool isnull() const noexcept
Definition Core/shape.hpp:115
uint32 rows
Definition Core/shape.hpp:44
uint32 cols
Definition Core/shape.hpp:45
Definition column_stack.hpp:40
NdArray< dtype > row_stack(Iterator begin, Iterator end)
Definition row_stack.hpp:52
Definition Cartesian.hpp:39
NdArray< dtype > row_stack(const std::initializer_list< NdArray< dtype > > &inArrayList)
Definition row_stack.hpp:110
std::uint32_t uint32
Definition Types.hpp:40