46 template<
typename dtype>
51 for (
uint32 i = 0; i < inSquareSize; ++i)
53 returnArray(i, i) = dtype{ 1 };
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
self_type & zeros() noexcept
Definition NdArrayCore.hpp:4981
Definition Cartesian.hpp:40
NdArray< dtype > identity(uint32 inSquareSize)
Definition identity.hpp:47
std::uint32_t uint32
Definition Types.hpp:40