cc.mallet.types
Interface ConstantMatrix
- All Known Subinterfaces:
- Matrix, Vector
- All Known Implementing Classes:
- AugmentableFeatureVector, DenseMatrix, DenseVector, ExpGain, FeatureCounts, FeatureVector, GainRatio, GradientGain, HashedSparseVector, IndexedSparseVector, InfoGain, KLGain, LabelVector, Matrix2, Matrixn, Multinomial, Multinomial.Logged, PartiallyRankedFeatureVector, RankedFeatureVector, SparseMatrixn, SparseVector
public interface ConstantMatrix
getNumDimensions
int getNumDimensions()
getDimensions
int getDimensions(int[] sizes)
value
double value(int[] indices)
singleIndex
int singleIndex(int[] indices)
singleToIndices
void singleToIndices(int i,
int[] indices)
singleValue
double singleValue(int i)
singleSize
int singleSize()
numLocations
int numLocations()
location
int location(int index)
valueAtLocation
double valueAtLocation(int location)
indexAtLocation
int indexAtLocation(int location)
dotProduct
double dotProduct(ConstantMatrix m)
absNorm
double absNorm()
oneNorm
double oneNorm()
twoNorm
double twoNorm()
infinityNorm
double infinityNorm()
print
void print()
isNaN
boolean isNaN()
cloneMatrix
ConstantMatrix cloneMatrix()