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

Functions

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

Function Documentation

◆ lu_factor()

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

◆ lu_solve()

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

◆ solve()

Solve the linear system A X = B.

◆ vector_norm()

BatchTensor vector_norm ( const BatchTensor & v)

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