|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.multiagent.gamer.LongTensor
The LongTensor class can be used to store matrices of any dimension
Constructor Summary | |
LongTensor(int[] dimSize)
The constructor for a LongTensor |
Method Summary | |
int |
getNumDimensions()
|
int |
getSizeOfDim(int dim)
|
long |
getValue(int[] indices)
Get the value stored at the indexed spot in the tensor |
long[] |
getValues()
Probably won't use this much, but occasionally may be useful to get all values returned in one array. |
void |
setValue(long value,
int[] indices)
Set the value stored at the indexed spot in the tensor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LongTensor(int[] dimSize)
dimSize
- an array holding the size of the tensor in
each dimensionMethod Detail |
public void setValue(long value, int[] indices)
public long getValue(int[] indices)
public int getNumDimensions()
public int getSizeOfDim(int dim)
public long[] getValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |