|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.types.DenseMatrix cc.mallet.types.Matrix2
@Deprecated public final class Matrix2
Field Summary |
---|
Fields inherited from class cc.mallet.types.DenseMatrix |
---|
hasInfinite |
Constructor Summary | |
---|---|
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 | |
---|---|
void |
arrayCopyFrom(double[] array,
int startingArrayIndex)
Deprecated. |
void |
arrayCopyInto(double[] array,
int startingArrayIndex)
Deprecated. |
ConstantMatrix |
cloneMatrix()
Deprecated. |
Matrix2 |
cloneMatrix2()
Deprecated. |
void |
columnPlusEquals(int ci,
double v,
double factor)
Deprecated. |
void |
columnPlusEquals(int ci,
Vector v,
double factor)
Deprecated. |
int |
getDimensions(int[] sizes)
Deprecated. |
int |
getNumCols()
Deprecated. |
int |
getNumDimensions()
Deprecated. |
int |
getNumRows()
Deprecated. |
void |
plusEquals(int ri,
int ci,
double value)
Deprecated. |
void |
print()
Deprecated. |
double |
rowDotProduct(int ri,
Vector v)
Deprecated. |
double |
rowDotProduct(int ri,
Vector v,
int maxCi,
FeatureSelection selection)
Deprecated. Skip all column indices higher than "maxCi". |
void |
rowPlusEquals(int ri,
double v,
double factor)
Deprecated. |
void |
rowPlusEquals(int ri,
Vector v,
double factor)
Deprecated. |
void |
rowSetAll(int ri,
double v,
FeatureSelection fselection,
boolean ifSelected)
Deprecated. If "ifSelected" is false, it reverses the selection. |
void |
setAll(double v)
Deprecated. |
void |
setAll(double v,
FeatureSelection fselection,
boolean ifSelected)
Deprecated. If "ifSelected" is false, it reverses the selection. |
void |
setSingle(int i,
double value)
Deprecated. |
void |
setValue(int[] indices,
double val)
Deprecated. |
void |
setValue(int rowIndex,
int colIndex,
double value)
Deprecated. |
int |
singleIndex(int[] indices)
Deprecated. |
int |
singleSize()
Deprecated. |
void |
singleToIndices(int i,
int[] indices)
Deprecated. |
double |
singleValue(int i)
Deprecated. |
boolean |
sizeMatches(ConstantMatrix m)
Deprecated. |
boolean |
sizeMatches(Matrix2 m)
Deprecated. |
java.lang.String |
toString()
Deprecated. |
Matrix2 |
transpose()
Deprecated. |
double |
twoNormSquared()
Deprecated. |
double |
value(int[] indices)
Deprecated. |
double |
value(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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Matrix2(double[] values, int nr, int nc)
public Matrix2(int nr, int nc)
public Matrix2(double[][] values)
public Matrix2(double value, int nr, int nc)
Method Detail |
---|
public int getNumDimensions()
getNumDimensions
in interface ConstantMatrix
getNumDimensions
in class DenseMatrix
public int getDimensions(int[] sizes)
getDimensions
in interface ConstantMatrix
getDimensions
in class DenseMatrix
public double value(int rowIndex, int colIndex)
public final void arrayCopyInto(double[] array, int startingArrayIndex)
public final void arrayCopyFrom(double[] array, int startingArrayIndex)
public void setValue(int rowIndex, int colIndex, double value)
public boolean sizeMatches(ConstantMatrix m)
public boolean sizeMatches(Matrix2 m)
public int getNumRows()
public int getNumCols()
public Matrix2 transpose()
public final double value(int[] indices)
value
in interface ConstantMatrix
value
in class DenseMatrix
public final void setValue(int[] indices, double val)
setValue
in interface Matrix
setValue
in class DenseMatrix
public final int singleIndex(int[] indices)
singleIndex
in interface ConstantMatrix
singleIndex
in class DenseMatrix
public final void singleToIndices(int i, int[] indices)
singleToIndices
in interface ConstantMatrix
singleToIndices
in class DenseMatrix
public final double singleValue(int i)
singleValue
in interface ConstantMatrix
singleValue
in class DenseMatrix
public final void setSingle(int i, double value)
public final int singleSize()
singleSize
in interface ConstantMatrix
singleSize
in class DenseMatrix
public final ConstantMatrix cloneMatrix()
cloneMatrix
in interface ConstantMatrix
cloneMatrix
in class DenseMatrix
public final Matrix2 cloneMatrix2()
public final void setAll(double v)
setAll
in interface Matrix
setAll
in class DenseMatrix
public final void setAll(double v, FeatureSelection fselection, boolean ifSelected)
public final void rowSetAll(int ri, double v, FeatureSelection fselection, boolean ifSelected)
public final void plusEquals(int ri, int ci, double value)
public final void rowPlusEquals(int ri, Vector v, double factor)
public final void rowPlusEquals(int ri, double v, double factor)
public final void columnPlusEquals(int ci, Vector v, double factor)
public final void columnPlusEquals(int ci, double v, double factor)
public final double rowDotProduct(int ri, Vector v)
public final double rowDotProduct(int ri, Vector v, int maxCi, FeatureSelection selection)
public final double twoNormSquared()
public void print()
print
in interface ConstantMatrix
print
in class DenseMatrix
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |