Class MatrixAlgebraFactory


  • public final class MatrixAlgebraFactory
    extends Object
    Factory class for various types of matrix algebra calculators.
    • Method Detail

      • getMatrixAlgebra

        public static MatrixAlgebra getMatrixAlgebra​(String algebraName)
        Given a name, returns an instance of the matrix algebra calculator.
        Parameters:
        algebraName - The name of the matrix algebra calculator
        Returns:
        The matrix algebra calculator
        Throws:
        IllegalArgumentException - If the calculator name is null or there is no calculator for that name
      • getMatrixAlgebraName

        public static String getMatrixAlgebraName​(MatrixAlgebra algebra)
        Given a matrix algebra calculator, returns its name.
        Parameters:
        algebra - The algebra
        Returns:
        The name of that calculator (null if not found)