 |
NumCpp
2.1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
58 template<
typename dtype>
83 s += std::fabs(uMatrix(i,
j));
86 const double q = std::fabs(uMatrix(i, k)) / s;
111 lMatrix(i, k) = uMatrix(i, k) / uMatrix(k, k);
115 uMatrix(i,
j) = uMatrix(i,
j) - lMatrix(i, k) * uMatrix(k,
j);
125 return std::make_tuple(lMatrix, uMatrix, pMatrix);
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4312
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:38
Shape shape(const NdArray< dtype > &inArray) noexcept
Definition: Functions/Shape.hpp:45
bool essentiallyEqual(dtype inValue1, dtype inValue2) noexcept
Definition: essentiallyEqual.hpp:53
constexpr bool issquare() const noexcept
Definition: Core/Shape.hpp:124
constexpr auto j
Definition: Constants.hpp:46
std::uint32_t uint32
Definition: Types.hpp:41
uint32 cols
Definition: Core/Shape.hpp:46
#define THROW_RUNTIME_ERROR(msg)
Definition: Error.hpp:38
Definition: Coordinate.hpp:45
void swap(NdArray< dtype > &inArray1, NdArray< dtype > &inArray2) noexcept
Definition: swap.hpp:43
uint32 rows
Definition: Core/Shape.hpp:45
NdArray< dtype > max(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: max.hpp:46
std::tuple< NdArray< double >, NdArray< double >, NdArray< double > > pivotLU_decomposition(const NdArray< dtype > &inMatrix)
Definition: pivotLU_decomposition.hpp:59