public class Index
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
long[] |
dimsizes |
long[] |
indices |
int |
rank |
static Index |
SCALAR |
Constructor and Description |
---|
Index(Index index) |
Index(int rank) |
Index(long[] indices,
long[] dimsizes) |
Modifier and Type | Method and Description |
---|---|
long |
get(int i) |
int |
getRank() |
long |
getSize(int i) |
long |
index()
Compute the linear index
from the current odometer indices.
|
boolean |
isScalar() |
java.lang.String |
toString() |
public static final Index SCALAR
public int rank
public long[] indices
public long[] dimsizes
public Index(int rank)
public Index(Index index)
public Index(long[] indices, long[] dimsizes)
public java.lang.String toString()
toString
in class java.lang.Object
public long index()
public int getRank()
public long get(int i)
public long getSize(int i)
public boolean isScalar()