NEML2 1.4.0
Loading...
Searching...
No Matches
neml2::math::linalg Namespace Reference

Functions

Tensor vector_norm (const Tensor &v)
 Vector norm of a vector. Falls back to math::abs is v is a Scalar.
 
Tensor inv (const Tensor &m)
 Inverse of a square matrix.
 
Tensor solve (const Tensor &A, const Tensor &B)
 Solve the linear system A X = B.
 
std::tuple< Tensor, Tensorlu_factor (const Tensor &A, bool pivot)
 
Tensor lu_solve (const Tensor &LU, const Tensor &pivots, const Tensor &B, bool left, bool adjoint)
 

Function Documentation

◆ inv()

Tensor inv ( const Tensor & m)

Inverse of a square matrix.

◆ lu_factor()

std::tuple< Tensor, Tensor > lu_factor ( const Tensor & A,
bool pivot )

◆ lu_solve()

Tensor lu_solve ( const Tensor & LU,
const Tensor & pivots,
const Tensor & B,
bool left,
bool adjoint )

◆ solve()

Tensor solve ( const Tensor & A,
const Tensor & B )

Solve the linear system A X = B.

◆ vector_norm()

Tensor vector_norm ( const Tensor & v)

Vector norm of a vector. Falls back to math::abs is v is a Scalar.