Package org.flag4j.linalg.solvers
Interface LinearTensorSolver<T extends TensorBase<T,?,?,?,?,?,?>>
- Type Parameters:
T
- Type of the tensors in the linear system.
- All Known Implementing Classes:
ComplexExactTensorSolver
,ExactTensorSolver
,RealExactTensorSolver
public interface LinearTensorSolver<T extends TensorBase<T,?,?,?,?,?,?>>
This interface specifies methods which all linear tensor system solvers should implement. Solvers
may solve in an exact sense or in a least squares sense.
-
Method Summary
-
Method Details
-
solve
Solves the linear tensor equation given byA*X=B
for the tensorX
. All indices ofX
are summed over in the tensor product with the rightmost indices ofA
as if byA.tensorDot(X, X.getRank())
.- Parameters:
A
- Coefficient tensor in the linear system.B
- Tensor of constants in the linear system.- Returns:
- The solution to
x
in the linear systemA*X=B
.
-