Class MatrixComponents

    • Constructor Detail

      • MatrixComponents

        public MatrixComponents​(MatrixFactoryI mfact,
                                MatrixFieldI mfield)
        Constructor with no logical or string support
        Parameters:
        mfact - the MatrixFactory to use
        mfield - the MatrixField to use
      • MatrixComponents

        public MatrixComponents​(MatrixFactoryI mfact,
                                MatrixFieldI mfield,
                                boolean logical,
                                boolean strings)
        Constructor with optional logical and string support
        Parameters:
        mfact - the MatrixFactory to use
        mfield - the MatrixField to use
        logical - whether operations on booleans are supported
        strings - whether string operations are supported
    • Method Detail

      • buildField

        protected static MatrixFieldI buildField​(MatrixFieldI mfield,
                                                 boolean logical,
                                                 boolean strings)
        Creates a field with optional logical and string support
        Parameters:
        mfield - base field
        logical - whether operations on booleans are supported
        strings - whether string operations are supported
        Returns:
      • 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
        Overrides:
        init in class ComponentSubset
        Parameters:
        jep - the current Jep instance
      • getMatrixFunctionTable

        public MatrixFunctionTable getMatrixFunctionTable()
        Return a function table
        Returns:
        a table created during construction
        Since:
        Jep 4.0/Extensions 2.1
      • getMatrixOperatorTable

        public MatrixOperatorTable getMatrixOperatorTable()
        Return an operator table
        Returns:
        a table created during construction
        Since:
        Jep 4.0/Extensions 2.1