57 template<
typename dtype>
73 lMatrix(col, col) = 1;
77 const double& divisor = uMatrix(col, col);
83 lMatrix(row, col) = uMatrix(row, col) / divisor;
87 uMatrix(row, col2) -= lMatrix(row, col) * uMatrix(col, col2);
92 return std::make_pair(lMatrix, uMatrix);
#define THROW_RUNTIME_ERROR(msg)
Definition: Error.hpp:38
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4276
uint32 rows
Definition: Core/Shape.hpp:44
bool issquare() const noexcept
Definition: Core/Shape.hpp:125
uint32 cols
Definition: Core/Shape.hpp:45
std::pair< NdArray< double >, NdArray< double > > lu_decomposition(const NdArray< dtype > &inMatrix)
Definition: lu_decomposition.hpp:58
bool essentiallyEqual(dtype inValue1, dtype inValue2) noexcept
Definition: essentiallyEqual.hpp:51
Definition: Coordinate.hpp:45
Shape shape(const NdArray< dtype > &inArray) noexcept
Definition: Functions/Shape.hpp:42
std::uint32_t uint32
Definition: Types.hpp:40