class FlatMatrixAdapter extends Object implements NumberArrayAdapter<Double,Matrix>
Modifier | Constructor and Description |
---|---|
protected |
FlatMatrixAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Double |
get(Matrix array,
int off)
Deprecated.
|
byte |
getByte(Matrix array,
int off)
Get the off'th item from the array as byte.
|
double |
getDouble(Matrix array,
int off)
Get the off'th item from the array as double.
|
float |
getFloat(Matrix array,
int off)
Get the off'th item from the array as float.
|
int |
getInteger(Matrix array,
int off)
Get the off'th item from the array as integer.
|
long |
getLong(Matrix array,
int off)
Get the off'th item from the array as long.
|
short |
getShort(Matrix array,
int off)
Get the off'th item from the array as short.
|
int |
size(Matrix array)
Get the size of the array.
|
protected FlatMatrixAdapter()
ArrayLikeUtil
!public int size(Matrix array)
ArrayAdapter
size
in interface ArrayAdapter<Double,Matrix>
size
in interface NumberArrayAdapter<Double,Matrix>
array
- Array-like thing@Deprecated public Double get(Matrix array, int off) throws IndexOutOfBoundsException
ArrayAdapter
get
in interface ArrayAdapter<Double,Matrix>
get
in interface NumberArrayAdapter<Double,Matrix>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public double getDouble(Matrix array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getDouble
in interface NumberArrayAdapter<Double,Matrix>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public float getFloat(Matrix array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getFloat
in interface NumberArrayAdapter<Double,Matrix>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public int getInteger(Matrix array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getInteger
in interface NumberArrayAdapter<Double,Matrix>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public short getShort(Matrix array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getShort
in interface NumberArrayAdapter<Double,Matrix>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public long getLong(Matrix array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getLong
in interface NumberArrayAdapter<Double,Matrix>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public byte getByte(Matrix array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getByte
in interface NumberArrayAdapter<Double,Matrix>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.