nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
numerics.hpp File Reference
#include <cstddef>
#include <vector>

Go to the source code of this file.

Typedefs

using nk::control::internal::Mat = std::vector<double>
using nk::control::internal::Vec = std::vector<double>

Functions

bool nk::control::internal::solveInPlace (Mat &A, Mat &B, std::size_t n, std::size_t nrhs)
 In-place partial-pivot LU decomposition + back-substitution.
Mat nk::control::internal::expm (const Mat &A, std::size_t n)
 Matrix exponential via the canonical [6/6] Padé approximant with scaling and squaring.
Vec nk::control::internal::charPoly (const Mat &A, std::size_t n)
 Faddeev–LeVerrier characteristic polynomial of an n×n column-major matrix.
Mat nk::control::internal::matmulSq (const Mat &A, const Mat &B, std::size_t n)
 Square matrix multiply C = A·B (all n×n column-major).