50 template<
typename dtype>
55 return inAppendValues;
69 inAppendValues.
cend(),
77 const Shape appendShape = inAppendValues.
shape();
78 if (inShape.
cols != appendShape.
cols)
81 "all the input array dimensions except for the concatenation axis must match exactly");
87 inAppendValues.
cend(),
95 const Shape appendShape = inAppendValues.
shape();
96 if (inShape.
rows != appendShape.
rows)
99 "all the input array dimensions except for the concatenation axis must match exactly");
103 for (
uint32 row = 0; row < returnArray.
shape().rows; ++row)
107 inAppendValues.
cend(row),
#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
size_type size() const noexcept
Definition NdArrayCore.hpp:4600
const_iterator cbegin() const noexcept
Definition NdArrayCore.hpp:1361
const Shape & shape() const noexcept
Definition NdArrayCore.hpp:4587
const_iterator cend() const noexcept
Definition NdArrayCore.hpp:1669
iterator begin() noexcept
Definition NdArrayCore.hpp:1311
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
OutputIt copy(InputIt first, InputIt last, OutputIt destination) noexcept
Definition StlAlgorithms.hpp:98
Definition Cartesian.hpp:39
Axis
Enum To describe an axis.
Definition Enums.hpp:36
@ ROW
Definition Enums.hpp:38
@ COL
Definition Enums.hpp:39
@ NONE
Definition Enums.hpp:37
NdArray< dtype > append(const NdArray< dtype > &inArray, const NdArray< dtype > &inAppendValues, Axis inAxis=Axis::NONE)
Definition append.hpp:51
std::uint32_t uint32
Definition Types.hpp:40