solve

Contents

solve#

Solves the system of equations AX=Y, where X is the unknown.

template<typename OpA, typename OpB>
__MATX_INLINE__ auto matx::solve(const OpA &A, const OpB &B)#

Run a direct SOLVE (viz. X = solve(A, B) solves system AX=B for unknown X).

Note that currently, this operation is only implemented for solving a linear system with a very sparse matrix A.

Template Parameters:
  • OpA – Data type of A tensor (sparse)

  • OpB – Data type of B tensor

Parameters:
  • A – A Sparse tensor with system coefficients

  • B – B Dense tensor of known values

Returns:

Operator that produces the output tensor X with the solution

Currently only supported for sparse matrix A, please see Sparse Tensor Type.