public abstract class BaseMatrixRow extends Object implements MatrixRow
Constructor and Description |
---|
BaseMatrixRow() |
Modifier and Type | Method and Description |
---|---|
LinkedHashMap<Integer,Float> |
asMap() |
gnu.trove.map.hash.TIntFloatHashMap |
asTroveMap() |
abstract int |
getColIndex(int i) |
abstract float |
getColValue(int i) |
int |
getIndexForId(int id) |
double |
getNorm() |
abstract int |
getNumCols() |
abstract int |
getRowIndex() |
float |
getValueForId(int id) |
public abstract int getColIndex(int i)
getColIndex
in interface MatrixRow
public abstract float getColValue(int i)
getColValue
in interface MatrixRow
public abstract int getRowIndex()
getRowIndex
in interface MatrixRow
public abstract int getNumCols()
getNumCols
in interface MatrixRow
public LinkedHashMap<Integer,Float> asMap()
public gnu.trove.map.hash.TIntFloatHashMap asTroveMap()
asTroveMap
in interface MatrixRow
public int getIndexForId(int id)
getIndexForId
in interface MatrixRow
public float getValueForId(int id)
getValueForId
in interface MatrixRow
Copyright © 2015. All rights reserved.