Documentation of 'cc.mallet.types.Matrix2' Java class
Matrix2
cc.mallet.types

Class Matrix2

    • Constructor Detail

      • Matrix2

        public Matrix2(double[] values,
                       int nr,
                       int nc)
        Deprecated. 
      • Matrix2

        public Matrix2(int nr,
                       int nc)
        Deprecated. 
      • Matrix2

        public Matrix2(double[][] values)
        Deprecated. 
      • Matrix2

        public Matrix2(double value,
                       int nr,
                       int nc)
        Deprecated. 
    • Method Detail

      • value

        public double value(int rowIndex,
                            int colIndex)
        Deprecated. 
      • arrayCopyInto

        public final void arrayCopyInto(double[] array,
                                        int startingArrayIndex)
        Deprecated. 
      • arrayCopyFrom

        public final void arrayCopyFrom(double[] array,
                                        int startingArrayIndex)
        Deprecated. 
      • setValue

        public void setValue(int rowIndex,
                             int colIndex,
                             double value)
        Deprecated. 
      • sizeMatches

        public boolean sizeMatches(ConstantMatrix m)
        Deprecated. 
      • sizeMatches

        public boolean sizeMatches(Matrix2 m)
        Deprecated. 
      • getNumRows

        public int getNumRows()
        Deprecated. 
      • getNumCols

        public int getNumCols()
        Deprecated. 
      • transpose

        public Matrix2 transpose()
        Deprecated. 
      • setValue

        public final void setValue(int[] indices,
                                   double val)
        Deprecated. 
        Specified by:
        setValue in interface Matrix
        Specified by:
        setValue in class DenseMatrix
      • setSingle

        public final void setSingle(int i,
                                    double value)
        Deprecated. 
      • cloneMatrix2

        public final Matrix2 cloneMatrix2()
        Deprecated. 
      • setAll

        public final void setAll(double v,
                                 FeatureSelection fselection,
                                 boolean ifSelected)
        Deprecated. 
        If "ifSelected" is false, it reverses the selection. If "fselection" is null, this implies that all features are selected; all values will be changed unless "ifSelected" is false.
      • rowSetAll

        public final void rowSetAll(int ri,
                                    double v,
                                    FeatureSelection fselection,
                                    boolean ifSelected)
        Deprecated. 
        If "ifSelected" is false, it reverses the selection. If "fselection" is null, this implies that all features are selected; all values in the row will be changed unless "ifSelected" is false.
      • plusEquals

        public final void plusEquals(int ri,
                                     int ci,
                                     double value)
        Deprecated. 
      • rowPlusEquals

        public final void rowPlusEquals(int ri,
                                        Vector v,
                                        double factor)
        Deprecated. 
      • rowPlusEquals

        public final void rowPlusEquals(int ri,
                                        double v,
                                        double factor)
        Deprecated. 
      • columnPlusEquals

        public final void columnPlusEquals(int ci,
                                           Vector v,
                                           double factor)
        Deprecated. 
      • columnPlusEquals

        public final void columnPlusEquals(int ci,
                                           double v,
                                           double factor)
        Deprecated. 
      • rowDotProduct

        public final double rowDotProduct(int ri,
                                          Vector v)
        Deprecated. 
      • rowDotProduct

        public final double rowDotProduct(int ri,
                                          Vector v,
                                          int maxCi,
                                          FeatureSelection selection)
        Deprecated. 
        Skip all column indices higher than "maxCi". This lets you store non-vocabulary based parameters in the high column indices, without fearing that they may later be included by accident if the dictionary grows. You may pass null for selection.
      • twoNormSquared

        public final double twoNormSquared()
        Deprecated. 
      • toString

        public java.lang.String toString()
        Deprecated. 
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.