Documentation of 'visad.matrix.JamaMatrix' Java class
JamaMatrix
visad.matrix

Class JamaMatrix

    • Constructor Detail

      • JamaMatrix

        public JamaMatrix(int rows,
                          int cols)
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Construct a new JamaMatrix from the given matrix dimensions.
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • JamaMatrix

        public JamaMatrix(double[][] entries)
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Construct a new JamaMatrix from the given matrix entries.
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • JamaMatrix

        public JamaMatrix(java.lang.Object matrix)
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Construct a new JamaMatrix from the given JAMA Matrix.
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • JamaMatrix

        public JamaMatrix(java.lang.Object matrix,
                          FunctionType type,
                          Gridded2DSet domain_set)
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Construct a new JamaMatrix from the given JAMA Matrix, MathType and domain set.
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • JamaMatrix

        public JamaMatrix(java.lang.Object matrix,
                          CoordinateSystem range_coord_sys,
                          CoordinateSystem[] range_coord_syses,
                          Set[] range_sets,
                          Unit[] units)
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Construct a new JamaMatrix from the specified JAMA Matrix, coordinate systems, range sets and units.
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • JamaMatrix

        public JamaMatrix(java.lang.Object matrix,
                          FunctionType type,
                          Gridded2DSet domain_set,
                          CoordinateSystem range_coord_sys,
                          CoordinateSystem[] range_coord_syses,
                          Set[] range_sets,
                          Unit[] units)
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Construct a new JamaMatrix from the specified JAMA Matrix, MathType, domain set, coordinate systems, range sets and units.
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
    • Method Detail

      • convertToMatrix

        public static JamaMatrix convertToMatrix(FlatField field)
                                          throws VisADException,
                                                 java.lang.IllegalAccessException,
                                                 java.lang.InstantiationException,
                                                 java.lang.reflect.InvocationTargetException
        Attempt to convert the given VisAD FlatField to a VisAD JamaMatrix Data object.
        Returns:
        The converted object, or null if it could not be converted
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • main

        public static void main(java.lang.String[] args)
                         throws VisADException,
                                java.rmi.RemoteException
        Test the JamaMatrix class.
        Throws:
        VisADException
        java.rmi.RemoteException
      • getMatrix

        public java.lang.Object getMatrix()
        Return the associated JAMA Matrix object.
      • setMatrix

        public void setMatrix(java.lang.Object matrix)
                       throws VisADException,
                              java.lang.IllegalAccessException,
                              java.lang.InstantiationException,
                              java.lang.reflect.InvocationTargetException
        Set this matrix's samples to correspond to those of the given JAMA Matrix.
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • setMatrix

        public void setMatrix(double[][] entries)
                       throws VisADException,
                              java.lang.IllegalAccessException,
                              java.lang.InstantiationException,
                              java.lang.reflect.InvocationTargetException
        Set this matrix's samples to correspond to the given entries.
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • getRowDimension

        public int getRowDimension()
                            throws VisADException,
                                   java.lang.IllegalAccessException,
                                   java.lang.InstantiationException,
                                   java.lang.reflect.InvocationTargetException
        Get row dimension.
        Returns:
        The number of rows
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • getColumnDimension

        public int getColumnDimension()
                               throws VisADException,
                                      java.lang.IllegalAccessException,
                                      java.lang.InstantiationException,
                                      java.lang.reflect.InvocationTargetException
        Get column dimension.
        Returns:
        The number of columns
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • get

        public double get(int i,
                          int j)
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Get a single element.
        Parameters:
        i - Row index
        j - Column index
        Returns:
        A(i,j)
        Throws:
        java.lang.ArrayIndexOutOfBoundsException
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • getMatrix

        public JamaMatrix getMatrix(int i0,
                                    int i1,
                                    int j0,
                                    int j1)
                             throws VisADException,
                                    java.lang.IllegalAccessException,
                                    java.lang.InstantiationException,
                                    java.lang.reflect.InvocationTargetException
        Get a submatrix.
        Parameters:
        i0 - Initial row index
        i1 - Final row index
        j0 - Initial column index
        j1 - Final column index
        Returns:
        A(i0:i1,j0:j1)
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - Submatrix indices
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • getMatrix

        public JamaMatrix getMatrix(int[] r,
                                    int[] c)
                             throws VisADException,
                                    java.lang.IllegalAccessException,
                                    java.lang.InstantiationException,
                                    java.lang.reflect.InvocationTargetException
        Get a submatrix.
        Parameters:
        r - Array of row indices
        c - Array of column indices
        Returns:
        A(r(:),c(:))
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - Submatrix indices
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • getMatrix

        public JamaMatrix getMatrix(int i0,
                                    int i1,
                                    int[] c)
                             throws VisADException,
                                    java.lang.IllegalAccessException,
                                    java.lang.InstantiationException,
                                    java.lang.reflect.InvocationTargetException
        Get a submatrix.
        Parameters:
        i0 - Initial row index
        i1 - Final row index
        c - Array of column indices
        Returns:
        A(i0:i1,c(:))
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - Submatrix indices
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • getMatrix

        public JamaMatrix getMatrix(int[] r,
                                    int j0,
                                    int j1)
                             throws VisADException,
                                    java.lang.IllegalAccessException,
                                    java.lang.InstantiationException,
                                    java.lang.reflect.InvocationTargetException
        Get a submatrix.
        Parameters:
        r - Array of row indices
        j0 - Initial column index
        j1 - Final column index
        Returns:
        A(r(:),j0:j1)
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - Submatrix indices
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • set

        public void set(int i,
                        int j,
                        double s)
                 throws VisADException,
                        java.lang.IllegalAccessException,
                        java.lang.InstantiationException,
                        java.lang.reflect.InvocationTargetException
        Set a single element.
        Parameters:
        i - Row index
        j - Column index
        s - A(i,j)
        Throws:
        java.lang.ArrayIndexOutOfBoundsException
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • setMatrix

        public void setMatrix(int i0,
                              int i1,
                              int j0,
                              int j1,
                              JamaMatrix X)
                       throws VisADException,
                              java.lang.IllegalAccessException,
                              java.lang.InstantiationException,
                              java.lang.reflect.InvocationTargetException
        Set a submatrix.
        Parameters:
        i0 - Initial row index
        i1 - Final row index
        j0 - Initial column index
        j1 - Final column index
        X - A(i0:i1,j0:j1)
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - Submatrix indices
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • setMatrix

        public void setMatrix(int[] r,
                              int[] c,
                              JamaMatrix X)
                       throws VisADException,
                              java.lang.IllegalAccessException,
                              java.lang.InstantiationException,
                              java.lang.reflect.InvocationTargetException
        Set a submatrix.
        Parameters:
        r - Array of row indices
        c - Array of column indices
        X - A(r(:),c(:))
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - Submatrix indices
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • setMatrix

        public void setMatrix(int[] r,
                              int j0,
                              int j1,
                              JamaMatrix X)
                       throws VisADException,
                              java.lang.IllegalAccessException,
                              java.lang.InstantiationException,
                              java.lang.reflect.InvocationTargetException
        Set a submatrix.
        Parameters:
        r - Array of row indices
        j0 - Initial column index
        j1 - Final column index
        X - A(r(:),j0:j1)
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - Submatrix indices
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • setMatrix

        public void setMatrix(int i0,
                              int i1,
                              int[] c,
                              JamaMatrix X)
                       throws VisADException,
                              java.lang.IllegalAccessException,
                              java.lang.InstantiationException,
                              java.lang.reflect.InvocationTargetException
        Set a submatrix.
        Parameters:
        i0 - Initial row index
        i1 - Final row index
        c - Array of column indices
        X - A(i0:i1,c(:))
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - Submatrix indices
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • transpose

        public JamaMatrix transpose()
                             throws VisADException,
                                    java.lang.IllegalAccessException,
                                    java.lang.InstantiationException,
                                    java.lang.reflect.InvocationTargetException
        Matrix transpose.
        Returns:
        A'
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • norm1

        public double norm1()
                     throws VisADException,
                            java.lang.IllegalAccessException,
                            java.lang.InstantiationException,
                            java.lang.reflect.InvocationTargetException
        One norm.
        Returns:
        maximum column sum
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • norm2

        public double norm2()
                     throws VisADException,
                            java.lang.IllegalAccessException,
                            java.lang.InstantiationException,
                            java.lang.reflect.InvocationTargetException
        Two norm.
        Returns:
        maximum singular value
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • normInf

        public double normInf()
                       throws VisADException,
                              java.lang.IllegalAccessException,
                              java.lang.InstantiationException,
                              java.lang.reflect.InvocationTargetException
        Infinity norm.
        Returns:
        maximum row sum
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • normF

        public double normF()
                     throws VisADException,
                            java.lang.IllegalAccessException,
                            java.lang.InstantiationException,
                            java.lang.reflect.InvocationTargetException
        Frobenius norm.
        Returns:
        sqrt of sum of squares of all elements
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • uminus

        public JamaMatrix uminus()
                          throws VisADException,
                                 java.lang.IllegalAccessException,
                                 java.lang.InstantiationException,
                                 java.lang.reflect.InvocationTargetException
        Unary minus.
        Returns:
        -A
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • plus

        public JamaMatrix plus(JamaMatrix B)
                        throws VisADException,
                               java.lang.IllegalAccessException,
                               java.lang.InstantiationException,
                               java.lang.reflect.InvocationTargetException
        C = A + B
        Parameters:
        B - another matrix
        Returns:
        A + B
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • plusEquals

        public JamaMatrix plusEquals(JamaMatrix B)
                              throws VisADException,
                                     java.lang.IllegalAccessException,
                                     java.lang.InstantiationException,
                                     java.lang.reflect.InvocationTargetException
        A = A + B
        Parameters:
        B - another matrix
        Returns:
        A + B
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • minus

        public JamaMatrix minus(JamaMatrix B)
                         throws VisADException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                java.lang.reflect.InvocationTargetException
        C = A - B
        Parameters:
        B - another matrix
        Returns:
        A - B
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • minusEquals

        public JamaMatrix minusEquals(JamaMatrix B)
                               throws VisADException,
                                      java.lang.IllegalAccessException,
                                      java.lang.InstantiationException,
                                      java.lang.reflect.InvocationTargetException
        A = A - B
        Parameters:
        B - another matrix
        Returns:
        A - B
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • arrayTimes

        public JamaMatrix arrayTimes(JamaMatrix B)
                              throws VisADException,
                                     java.lang.IllegalAccessException,
                                     java.lang.InstantiationException,
                                     java.lang.reflect.InvocationTargetException
        Element-by-element multiplication, C = A.*B
        Parameters:
        B - another matrix
        Returns:
        A.*B
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • arrayTimesEquals

        public JamaMatrix arrayTimesEquals(JamaMatrix B)
                                    throws VisADException,
                                           java.lang.IllegalAccessException,
                                           java.lang.InstantiationException,
                                           java.lang.reflect.InvocationTargetException
        Element-by-element multiplication in place, A = A.*B
        Parameters:
        B - another matrix
        Returns:
        A.*B
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • arrayRightDivide

        public JamaMatrix arrayRightDivide(JamaMatrix B)
                                    throws VisADException,
                                           java.lang.IllegalAccessException,
                                           java.lang.InstantiationException,
                                           java.lang.reflect.InvocationTargetException
        Element-by-element right division, C = A./B
        Parameters:
        B - another matrix
        Returns:
        A./B
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • arrayRightDivideEquals

        public JamaMatrix arrayRightDivideEquals(JamaMatrix B)
                                          throws VisADException,
                                                 java.lang.IllegalAccessException,
                                                 java.lang.InstantiationException,
                                                 java.lang.reflect.InvocationTargetException
        Element-by-element right division in place, A = A./B
        Parameters:
        B - another matrix
        Returns:
        A./B
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • arrayLeftDivide

        public JamaMatrix arrayLeftDivide(JamaMatrix B)
                                   throws VisADException,
                                          java.lang.IllegalAccessException,
                                          java.lang.InstantiationException,
                                          java.lang.reflect.InvocationTargetException
        Element-by-element left division, C = A.\B
        Parameters:
        B - another matrix
        Returns:
        A.\B
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • arrayLeftDivideEquals

        public JamaMatrix arrayLeftDivideEquals(JamaMatrix B)
                                         throws VisADException,
                                                java.lang.IllegalAccessException,
                                                java.lang.InstantiationException,
                                                java.lang.reflect.InvocationTargetException
        Element-by-element left division in place, A = A.\B
        Parameters:
        B - another matrix
        Returns:
        A.\B
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • times

        public JamaMatrix times(double s)
                         throws VisADException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                java.lang.reflect.InvocationTargetException
        Multiply a matrix by a scalar, C = s*A
        Parameters:
        s - scalar
        Returns:
        s*A
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • timesEquals

        public JamaMatrix timesEquals(double s)
                               throws VisADException,
                                      java.lang.IllegalAccessException,
                                      java.lang.InstantiationException,
                                      java.lang.reflect.InvocationTargetException
        Multiply a matrix by a scalar in place, A = s*A
        Parameters:
        s - scalar
        Returns:
        replace A by s*A
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • times

        public JamaMatrix times(JamaMatrix B)
                         throws VisADException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                java.lang.reflect.InvocationTargetException
        Linear algebraic matrix multiplication, A * B
        Parameters:
        B - another matrix
        Returns:
        Matrix product, A * B
        Throws:
        java.lang.IllegalArgumentException - Matrix inner dimensions must agree
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • solve

        public JamaMatrix solve(JamaMatrix B)
                         throws VisADException,
                                java.lang.IllegalAccessException,
                                java.lang.InstantiationException,
                                java.lang.reflect.InvocationTargetException
        Solve A*X = B
        Parameters:
        B - right hand side
        Returns:
        solution if A is square, least squares solution otherwise
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • solveTranspose

        public JamaMatrix solveTranspose(JamaMatrix B)
                                  throws VisADException,
                                         java.lang.IllegalAccessException,
                                         java.lang.InstantiationException,
                                         java.lang.reflect.InvocationTargetException
        Solve X*A = B, which is also A'*X' = B'
        Parameters:
        B - right hand side
        Returns:
        solution if A is square, least squares solution otherwise
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • inverse

        public JamaMatrix inverse()
                           throws VisADException,
                                  java.lang.IllegalAccessException,
                                  java.lang.InstantiationException,
                                  java.lang.reflect.InvocationTargetException
        Matrix inverse or pseudoinverse.
        Returns:
        inverse(A) if A is square, pseudoinverse otherwise
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • det

        public double det()
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Matrix determinant.
        Returns:
        determinant
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • rank

        public int rank()
                 throws VisADException,
                        java.lang.IllegalAccessException,
                        java.lang.InstantiationException,
                        java.lang.reflect.InvocationTargetException
        Matrix rank.
        Returns:
        effective numerical rank, obtained from SVD
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • cond

        public double cond()
                    throws VisADException,
                           java.lang.IllegalAccessException,
                           java.lang.InstantiationException,
                           java.lang.reflect.InvocationTargetException
        Matrix condition (2 norm).
        Returns:
        ratio of largest to smallest singular value
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • trace

        public double trace()
                     throws VisADException,
                            java.lang.IllegalAccessException,
                            java.lang.InstantiationException,
                            java.lang.reflect.InvocationTargetException
        Matrix trace.
        Returns:
        sum of the diagonal elements
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • random

        public static JamaMatrix random(int m,
                                        int n)
                                 throws VisADException,
                                        java.lang.IllegalAccessException,
                                        java.lang.InstantiationException,
                                        java.lang.reflect.InvocationTargetException
        Generate matrix with random elements.
        Parameters:
        m - Number of rows
        n - Number of colums
        Returns:
        An m-by-n matrix with uniformly distributed random elements
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • identity

        public static JamaMatrix identity(int m,
                                          int n)
                                   throws VisADException,
                                          java.lang.IllegalAccessException,
                                          java.lang.InstantiationException,
                                          java.lang.reflect.InvocationTargetException
        Generate identity matrix.
        Parameters:
        m - Number of rows
        n - Number of colums
        Returns:
        An m-by-n matrix with ones on the diagonal and zeros elsewhere
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • print

        public void print(int w,
                          int d)
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Print the matrix to stdout. Line the elements up in columns with a Fortran-like 'Fw.d' style format
        Parameters:
        w - Column width
        d - Number of digits after the decimal
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • print

        public void print(java.io.PrintWriter output,
                          int w,
                          int d)
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Print the matrix to the output stream. Line the elements up in columns with a Fortran-like 'Fw.d' style format.
        Parameters:
        output - Output stream
        w - Column width
        d - Number of digits after the decimal
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • print

        public void print(java.text.NumberFormat format,
                          int width)
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Print the matrix to stdout. Line the elements up in columns. Use the format object, and right justify within columns of width characters.
        Parameters:
        format - Formatting object for individual elements
        width - Field width for each column
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • print

        public void print(java.io.PrintWriter output,
                          java.text.NumberFormat format,
                          int width)
                   throws VisADException,
                          java.lang.IllegalAccessException,
                          java.lang.InstantiationException,
                          java.lang.reflect.InvocationTargetException
        Print the matrix to the output stream. Line the elements up in columns. Use the format object, and right justify within columns of width characters.
        Parameters:
        output - the output stream
        format - A formatting object to format the matrix elements
        width - Column width
        Throws:
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • read

        public static JamaMatrix read(java.io.BufferedReader input)
                               throws java.io.IOException,
                                      VisADException,
                                      java.lang.IllegalAccessException,
                                      java.lang.InstantiationException,
                                      java.lang.reflect.InvocationTargetException
        Read a matrix from a stream. The format is the same the print method, so printed matrices can be read back in. Elements are separated by whitespace, all the elements for each row appear on a single line, the last row is followed by a blank line.
        Parameters:
        input - the input stream
        Throws:
        java.io.IOException
        VisADException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • chol

        public JamaCholeskyDecomposition chol()
                                       throws VisADException,
                                              java.rmi.RemoteException,
                                              java.lang.IllegalAccessException,
                                              java.lang.InstantiationException,
                                              java.lang.reflect.InvocationTargetException
        Throws:
        VisADException
        java.rmi.RemoteException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • eig

        public JamaEigenvalueDecomposition eig()
                                        throws VisADException,
                                               java.rmi.RemoteException,
                                               java.lang.IllegalAccessException,
                                               java.lang.InstantiationException,
                                               java.lang.reflect.InvocationTargetException
        Throws:
        VisADException
        java.rmi.RemoteException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • lu

        public JamaLUDecomposition lu()
                               throws VisADException,
                                      java.rmi.RemoteException,
                                      java.lang.IllegalAccessException,
                                      java.lang.InstantiationException,
                                      java.lang.reflect.InvocationTargetException
        Throws:
        VisADException
        java.rmi.RemoteException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • qr

        public JamaQRDecomposition qr()
                               throws VisADException,
                                      java.rmi.RemoteException,
                                      java.lang.IllegalAccessException,
                                      java.lang.InstantiationException,
                                      java.lang.reflect.InvocationTargetException
        Throws:
        VisADException
        java.rmi.RemoteException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException
      • svd

        public JamaSingularValueDecomposition svd()
                                           throws VisADException,
                                                  java.rmi.RemoteException,
                                                  java.lang.IllegalAccessException,
                                                  java.lang.InstantiationException,
                                                  java.lang.reflect.InvocationTargetException
        Throws:
        VisADException
        java.rmi.RemoteException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.reflect.InvocationTargetException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.