50 template<
typename dtype>
58 const uint32 rowOffset = k < 0 ? absK : 0;
59 const uint32 colOffset = k > 0 ? absK : 0;
64 returnArray(i + rowOffset, i + colOffset) = inArray[i];
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:56
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
size_type size() const noexcept
Definition: NdArrayCore.hpp:4524
self_type & zeros() noexcept
Definition: NdArrayCore.hpp:4900
Definition: Cartesian.hpp:40
auto abs(dtype inValue) noexcept
Definition: abs.hpp:49
NdArray< dtype > diagflat(const NdArray< dtype > &inArray, int32 k=0)
Definition: diagflat.hpp:51
std::int32_t int32
Definition: Types.hpp:36
std::uint32_t uint32
Definition: Types.hpp:40