public class NDArrayIndex
extends java.lang.Object
Constructor and Description |
---|
NDArrayIndex(int... indices) |
Modifier and Type | Method and Description |
---|---|
static NDArrayIndex |
concat(NDArrayIndex... indexes)
Concatneate all of the given indices in to one
|
static NDArrayIndex[] |
create(INDArray index)
Create from a matrix.
|
int |
end() |
boolean |
equals(java.lang.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)
|
boolean |
isInterval() |
int |
length()
Returns the length of the indices
|
int |
offset() |
void |
reverse() |
void |
setInterval(boolean isInterval) |
java.lang.String |
toString() |
public int end()
public int offset()
public int length()
public int[] indices()
public void reverse()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static NDArrayIndex[] create(INDArray index)
index
- the matrix to getFloat indices frompublic boolean isInterval()
public void setInterval(boolean isInterval)
public static NDArrayIndex concat(NDArrayIndex... indexes)
indexes
- the indexes to concatneatepublic 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.