cc.mallet.types
Class Matrix2
- java.lang.Object
-
- cc.mallet.types.DenseMatrix
-
- cc.mallet.types.Matrix2
-
- All Implemented Interfaces:
- ConstantMatrix, Matrix, java.io.Serializable
Deprecated.
@Deprecated public final class Matrix2 extends DenseMatrix
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Matrix2(double[][] values)Deprecated.Matrix2(double[] values, int nr, int nc)Deprecated.Matrix2(double value, int nr, int nc)Deprecated.Matrix2(int nr, int nc)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description voidarrayCopyFrom(double[] array, int startingArrayIndex)Deprecated.voidarrayCopyInto(double[] array, int startingArrayIndex)Deprecated.ConstantMatrixcloneMatrix()Deprecated.Matrix2cloneMatrix2()Deprecated.voidcolumnPlusEquals(int ci, double v, double factor)Deprecated.voidcolumnPlusEquals(int ci, Vector v, double factor)Deprecated.intgetDimensions(int[] sizes)Deprecated.intgetNumCols()Deprecated.intgetNumDimensions()Deprecated.intgetNumRows()Deprecated.voidplusEquals(int ri, int ci, double value)Deprecated.voidprint()Deprecated.doublerowDotProduct(int ri, Vector v)Deprecated.doublerowDotProduct(int ri, Vector v, int maxCi, FeatureSelection selection)Deprecated.Skip all column indices higher than "maxCi".voidrowPlusEquals(int ri, double v, double factor)Deprecated.voidrowPlusEquals(int ri, Vector v, double factor)Deprecated.voidrowSetAll(int ri, double v, FeatureSelection fselection, boolean ifSelected)Deprecated.If "ifSelected" is false, it reverses the selection.voidsetAll(double v)Deprecated.voidsetAll(double v, FeatureSelection fselection, boolean ifSelected)Deprecated.If "ifSelected" is false, it reverses the selection.voidsetSingle(int i, double value)Deprecated.voidsetValue(int[] indices, double val)Deprecated.voidsetValue(int rowIndex, int colIndex, double value)Deprecated.intsingleIndex(int[] indices)Deprecated.intsingleSize()Deprecated.voidsingleToIndices(int i, int[] indices)Deprecated.doublesingleValue(int i)Deprecated.booleansizeMatches(ConstantMatrix m)Deprecated.booleansizeMatches(Matrix2 m)Deprecated.java.lang.StringtoString()Deprecated.Matrix2transpose()Deprecated.doubletwoNormSquared()Deprecated.doublevalue(int[] indices)Deprecated.doublevalue(int rowIndex, int colIndex)Deprecated.-
Methods inherited from class cc.mallet.types.DenseMatrix
absNorm, absNormalize, almostEquals, divideEquals, dotProduct, elementwiseDivideEquals, elementwiseDivideEquals, elementwiseTimesEquals, elementwiseTimesEquals, equalsPlus, incrementSingleValue, indexAtLocation, infinityNorm, infinityNorm, infinityNormalize, isNaN, location, numLocations, oneNorm, oneNormalize, plusEquals, plusEquals, plusEquals, plusEquals, plusEquals, set, setSingleValue, setValueAtLocation, setWithAddend, setWithFactor, substitute, timesEquals, timesEquals, twoNorm, twoNormalize, valueAtLocation
-
-
-
-
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
-
getNumDimensions
public int getNumDimensions()
Deprecated.- Specified by:
getNumDimensionsin interfaceConstantMatrix- Specified by:
getNumDimensionsin classDenseMatrix
-
getDimensions
public int getDimensions(int[] sizes)
Deprecated.- Specified by:
getDimensionsin interfaceConstantMatrix- Specified by:
getDimensionsin classDenseMatrix
-
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.
-
value
public final double value(int[] indices)
Deprecated.- Specified by:
valuein interfaceConstantMatrix- Specified by:
valuein classDenseMatrix
-
setValue
public final void setValue(int[] indices, double val)Deprecated.- Specified by:
setValuein interfaceMatrix- Specified by:
setValuein classDenseMatrix
-
singleIndex
public final int singleIndex(int[] indices)
Deprecated.- Specified by:
singleIndexin interfaceConstantMatrix- Specified by:
singleIndexin classDenseMatrix
-
singleToIndices
public final void singleToIndices(int i, int[] indices)Deprecated.- Specified by:
singleToIndicesin interfaceConstantMatrix- Specified by:
singleToIndicesin classDenseMatrix
-
singleValue
public final double singleValue(int i)
Deprecated.- Specified by:
singleValuein interfaceConstantMatrix- Overrides:
singleValuein classDenseMatrix
-
setSingle
public final void setSingle(int i, double value)Deprecated.
-
singleSize
public final int singleSize()
Deprecated.- Specified by:
singleSizein interfaceConstantMatrix- Overrides:
singleSizein classDenseMatrix
-
cloneMatrix
public final ConstantMatrix cloneMatrix()
Deprecated.- Specified by:
cloneMatrixin interfaceConstantMatrix- Specified by:
cloneMatrixin classDenseMatrix
-
cloneMatrix2
public final Matrix2 cloneMatrix2()
Deprecated.
-
setAll
public final void setAll(double v)
Deprecated.- Specified by:
setAllin interfaceMatrix- Overrides:
setAllin classDenseMatrix
-
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.
-
print
public void print()
Deprecated.- Specified by:
printin interfaceConstantMatrix- Overrides:
printin classDenseMatrix
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG