Interface LinearMatrixSolver<T extends MatrixMixin<T,?,U,?>,U extends VectorMixin<U,T,?,?>>

Type Parameters:
T - The type of matrices in the linear system, extending MatrixMixin.
U - The type of vectors in the linear system, extending VectorMixin.
All Superinterfaces:
LinearSolver<T>
All Known Implementing Classes:
BackSolver, ComplexBackSolver, ComplexExactSolver, ComplexForwardSolver, ComplexLstsqSolver, ExactSolver, ForwardSolver, LstsqSolver, RealBackSolver, RealExactSolver, RealForwardSolver, RealLstsqSolver

public interface LinearMatrixSolver<T extends MatrixMixin<T,?,U,?>,U extends VectorMixin<U,T,?,?>> extends LinearSolver<T>

Interface representing a solver for linear systems involving matrices and vectors. Implementations of this interface provide methods to solve equations such as \( Ax = b \) and \( AX = B \), where \( A \), \( B \), and \( X \) are matrices, and \( x \) and \( b \) are vectors.

Solvers may compute exact solutions or approximate solutions in a least squares sense, depending on the properties of the system.

  • Method Summary

    Modifier and Type
    Method
    Description
    solve(T A, T B)
    Solves the linear matrix equation \( AX = B \) for the matrix \( X \).
    solve(T A, U b)
    Solves the linear system of equations \( Ax = b \) for the vector \( x \).
  • Method Details

    • solve

      U solve(T A, U b)
      Solves the linear system of equations \( Ax = b \) for the vector \( x \).
      Parameters:
      A - The coefficient matrix \( A \) in the linear system.
      b - The constant vector in the linear system.
      Returns:
      The solution vector \( x \) satisfying \( Ax = b \).
    • solve

      T solve(T A, T B)
      Solves the linear matrix equation \( AX = B \) for the matrix \( X \).
      Specified by:
      solve in interface LinearSolver<T extends MatrixMixin<T,?,U,?>>
      Parameters:
      A - The coefficient matrix in the linear system.
      B - The constant matrix in the linear system.
      Returns:
      The solution matrix \( X \) satisfying \( AX = B \).