nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
ldl.hpp
Go to the documentation of this file.
1
3// toolboxes/linalg/include/nk/linalg/ldl.hpp
4//
5// MATLAB ldl: block LDL' factorization. Migrated from
6// toolboxes/builtin/src/language/arrays/ldl.cpp.
7
8#pragma once
9
10#include <memory_resource>
11#include <tuple>
12#include <nk/value/value.hpp>
13
14namespace nk::linalg {
15
18
19
31std::tuple<Value, Value, Value>
32ldl(const Value &A, bool upper_form, bool p_as_vector,
33 std::pmr::memory_resource *mr = nullptr);
34
35
37} // namespace nk::linalg
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
std::tuple< Value, Value, Value > ldl(const Value &A, bool upper_form, bool p_as_vector, std::pmr::memory_resource *mr=nullptr)
Block LDL' factorisation ([L, D, P] = ldl(A, upper_form, p_as_vector)).