Class PolynomialFunctionMatrix


  • public class PolynomialFunctionMatrix
    extends Object
    A quadratic matrix of PolynomialFunction.
    Author:
    Petre Bazavan, Lucian Barbulescu
    • Method Detail

      • setElem

        public void setElem​(int line,
                            int column,
                            PolynomialFunction value)
        Set an element of the matrix.
        Parameters:
        line - the line
        column - the column
        value - the value
      • getElem

        public PolynomialFunction getElem​(int line,
                                          int column)
        Get the value of an element.
        Parameters:
        line - the line
        column - the column
        Returns:
        the value
      • setMatrix

        public void setMatrix​(PolynomialFunction[][] polynomials)
        Set values for all elements.
        Parameters:
        polynomials - the values that will be used for the matrix
      • setMatrixLine

        public void setMatrixLine​(int line,
                                  PolynomialFunction[] polynomials)
        Set the value of a line of the matrix.
        Parameters:
        line - the line number
        polynomials - the values to set
      • getMatrixLine

        public PolynomialFunction[] getMatrixLine​(int line)
        Get a line of the matrix.
        Parameters:
        line - the line number
        Returns:
        the line of the matrix as a vector