Class SequenceMatrixFactory

    • Constructor Detail

      • SequenceMatrixFactory

        public SequenceMatrixFactory()
    • Method Detail

      • newVector

        public DoubleVector newVector​(double[] data)
      • elementValue

        public java.lang.Double elementValue​(java.lang.Object o)
        Description copied from interface: MatrixFactoryI
        Converts the argument to the type of elements of the matrix
        Specified by:
        elementValue in interface MatrixFactoryI
        Returns:
        the element value or null if it cannot be converted
      • identity

        public MatrixI identity​(int size)
        Description copied from interface: MatrixFactoryI
        Create an square identity matrix
        Specified by:
        identity in interface MatrixFactoryI
        Parameters:
        size - size
        Returns:
        a size by size identity matrix
      • identity

        public MatrixI identity​(int rows,
                                int cols)
        Description copied from interface: MatrixFactoryI
        Create an identity matrix.
        Specified by:
        identity in interface MatrixFactoryI
        Returns:
        a rows by cols identity matrix
      • zeroMat

        public MatrixI zeroMat​(int rows,
                               int cols)
        Description copied from interface: MatrixFactoryI
        Create an zero matrix.
        Specified by:
        zeroMat in interface MatrixFactoryI
        Returns:
        a rows by cols matrix
      • init

        public void init​(Jep jep)
        Description copied from interface: JepComponent
        Initialize the component. This methods is called whenever a component is added to Jep. Hence it allows components to keep track of the other components they may rely on.
        Specified by:
        init in interface JepComponent
        Parameters:
        jep - the current Jep instance