52 template<
typename dtype>
62 inAppendValues.
cend(),
70 const Shape appendShape = inAppendValues.
shape();
71 if (inShape.
cols != appendShape.
cols)
74 "all the input array dimensions except for the concatenation axis must match exactly");
80 inAppendValues.
cend(),
88 const Shape appendShape = inAppendValues.
shape();
89 if (inShape.
rows != appendShape.
rows)
92 "all the input array dimensions except for the concatenation axis must match exactly");
96 for (
uint32 row = 0; row < returnArray.
shape().rows; ++row)
100 inAppendValues.
cend(row),
#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
size_type size() const noexcept
Definition: NdArrayCore.hpp:4289
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1221
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4276
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1529
iterator begin() noexcept
Definition: NdArrayCore.hpp:1171
A Shape Class for NdArrays.
Definition: Core/Shape.hpp:41
uint32 rows
Definition: Core/Shape.hpp:44
uint32 cols
Definition: Core/Shape.hpp:45
OutputIt copy(InputIt first, InputIt last, OutputIt destination) noexcept
Definition: StlAlgorithms.hpp:99
Definition: Coordinate.hpp:45
Axis
Enum To describe an axis.
Definition: Types.hpp:47
NdArray< dtype > append(const NdArray< dtype > &inArray, const NdArray< dtype > &inAppendValues, Axis inAxis=Axis::NONE)
Definition: append.hpp:53
std::uint32_t uint32
Definition: Types.hpp:40