44 template<
typename dtype>
47 const auto inShape = inArray.shape();
48 for (
uint32 row = 0; row < inShape.rows; ++row)
50 if (row < inShape.cols)
52 inArray(row, row) = inValue;
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:135
Definition Cartesian.hpp:39
void fillDiagonal(NdArray< dtype > &inArray, dtype inValue) noexcept
Definition fillDiagnol.hpp:45
std::uint32_t uint32
Definition Types.hpp:40