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