public class NDArrayIndex extends Object
Constructor and Description |
---|
NDArrayIndex(int[] indices) |
Modifier and Type | Method and Description |
---|---|
int |
end() |
boolean |
equals(Object o) |
int |
hashCode() |
int[] |
indices() |
static NDArrayIndex |
interval(int begin,
int end)
Generates an interval from begin (inclusive) to end (exclusive)
|
static NDArrayIndex |
interval(int begin,
int end,
boolean inclusive)
Generates an interval from begin (inclusive) to end (exclusive)
|
int |
length()
Returns the length of the indices
|
int |
offset() |
void |
reverse() |
String |
toString() |
public int end()
public int offset()
public int length()
public int[] indices()
public void reverse()
public static NDArrayIndex interval(int begin, int end)
begin
- the beginend
- the end indexpublic static NDArrayIndex interval(int begin, int end, boolean inclusive)
begin
- the beginend
- the end indexinclusive
- whether the end should be inclusive or notCopyright © 2014. All Rights Reserved.