public class IntArrayIndexer extends IntIndexer
int[]
array.Modifier and Type | Field and Description |
---|---|
protected int[] |
array
The backing array.
|
Constructor and Description |
---|
IntArrayIndexer(int[] array,
int[] sizes,
int[] strides)
|
Modifier and Type | Method and Description |
---|---|
int[] |
array() |
int |
get(int... indices) |
int |
get(int i) |
IntIndexer |
get(int[] indices,
int[] m,
int offset,
int length) |
int |
get(int i,
int j) |
IntIndexer |
get(int i,
int[] m,
int offset,
int length) |
int |
get(int i,
int j,
int k) |
IntIndexer |
get(int i,
int j,
int[] m,
int offset,
int length) |
IntIndexer |
put(int[] indices,
int n) |
IntIndexer |
put(int[] indices,
int[] m,
int offset,
int length) |
IntIndexer |
put(int i,
int n) |
IntIndexer |
put(int i,
int[] m,
int offset,
int length) |
IntIndexer |
put(int i,
int j,
int n) |
IntIndexer |
put(int i,
int j,
int[] m,
int offset,
int length) |
IntIndexer |
put(int i,
int j,
int k,
int n) |
void |
release()
Makes sure changes are reflected onto the backing memory and releases any references.
|
create, create, create, create, get, get, get, getDouble, put, put, put
public int[] array()
public int get(int i)
get
in class IntIndexer
array/buffer[i]
public IntIndexer get(int i, int[] m, int offset, int length)
get
in class IntIndexer
this
where n[offset:offset + length] = array/buffer[i]
public int get(int i, int j)
get
in class IntIndexer
array/buffer[i * strides[0] + j]
public IntIndexer get(int i, int j, int[] m, int offset, int length)
get
in class IntIndexer
this
where n[offset:offset + length] = array/buffer[i * strides[0] + j]
public int get(int i, int j, int k)
get
in class IntIndexer
array/buffer[i * strides[0] + j * strides[1] + k]
public int get(int... indices)
get
in class IntIndexer
array/buffer[index(indices)]
public IntIndexer get(int[] indices, int[] m, int offset, int length)
get
in class IntIndexer
this
where n[offset:offset + length] = array/buffer[index(indices)]
public IntIndexer put(int i, int n)
put
in class IntIndexer
this
where array/buffer[i] = n
public IntIndexer put(int i, int[] m, int offset, int length)
put
in class IntIndexer
this
where array/buffer[i] = n[offset:offset + length]
public IntIndexer put(int i, int j, int n)
put
in class IntIndexer
this
where array/buffer[i * strides[0] + j] = n
public IntIndexer put(int i, int j, int[] m, int offset, int length)
put
in class IntIndexer
this
where array/buffer[i * strides[0] + j] = n[offset:offset + length]
public IntIndexer put(int i, int j, int k, int n)
put
in class IntIndexer
this
where array/buffer[i * strides[0] + j * strides[1] + k] = n
public IntIndexer put(int[] indices, int n)
put
in class IntIndexer
this
where array/buffer[index(indices)] = n
public IntIndexer put(int[] indices, int[] m, int offset, int length)
put
in class IntIndexer
this
where array/buffer[index(indices)] = n[offset:offset + length]
Copyright © 2014. All Rights Reserved.