T - Type of the valuespublic abstract class AbstractObjectMatrix<T> extends AbstractGenericMatrix<T[],it.unimi.dsi.fastutil.objects.ObjectArrayList<T>>
OctaveCell.dataL, size| Modifier | Constructor and Description |
|---|---|
protected |
AbstractObjectMatrix(AbstractGenericMatrix<T[],it.unimi.dsi.fastutil.objects.ObjectArrayList<T>> o)
Copy constructor.
|
protected |
AbstractObjectMatrix(int... size) |
protected |
AbstractObjectMatrix(Object[] dataA,
int... size) |
| Modifier and Type | Method and Description |
|---|---|
T |
get(int... pos)
Get the value.
|
protected T[] |
getDataA()
Returns the data store as an array.
|
String |
getPlainString(int pos)
Returns the string representation of the given plain position.
|
protected int |
initL(T[] data,
int size) |
protected it.unimi.dsi.fastutil.objects.ObjectArrayList<T> |
newL(int size)
Returns a new data store with given size
and entries carrying the default value.
|
void |
set(T value,
int... pos)
Set the value resizing by need.
|
void |
setPlain(String value,
int pos)
Sets the entry with plain position
pos
to value parsing the string value. |
void |
setPlain(T value,
int pos)
Set the value assuming resize is not necessary.
|
dataSize, equals, getSize, getSizeLength, hashCode, main, pos2ind, resizeUp, shallowCopyprotected AbstractObjectMatrix(int... size)
size - protected AbstractObjectMatrix(Object[] dataA, int... size)
dataA - size - protected AbstractObjectMatrix(AbstractGenericMatrix<T[],it.unimi.dsi.fastutil.objects.ObjectArrayList<T>> o)
o - protected final it.unimi.dsi.fastutil.objects.ObjectArrayList<T> newL(int size)
AbstractGenericMatrixnewL in class AbstractGenericMatrix<T[],it.unimi.dsi.fastutil.objects.ObjectArrayList<T>>protected final int initL(T[] data, int size)
initL in class AbstractGenericMatrix<T[],it.unimi.dsi.fastutil.objects.ObjectArrayList<T>>protected T[] getDataA()
AbstractGenericMatrixgetDataA in class AbstractGenericMatrix<T[],it.unimi.dsi.fastutil.objects.ObjectArrayList<T>>public void set(T value, int... pos)
value - pos - setPlain(Object, int)public final void setPlain(T value, int pos)
value - pos - set(Object, int[])public final void setPlain(String value, int pos)
AbstractGenericMatrixpos
to value parsing the string value.
Note that this base class cannot provide setter methods
for java's primitive data types.setPlain in class AbstractGenericMatrix<T[],it.unimi.dsi.fastutil.objects.ObjectArrayList<T>>pos - see e.g. setPlain(String, int)
and OctaveDouble.setPlain(String, int)public T get(int... pos)
pos - public final String getPlainString(int pos)
AbstractGenericMatrixgetPlainString in class AbstractGenericMatrix<T[],it.unimi.dsi.fastutil.objects.ObjectArrayList<T>>Copyright © 2006–2018 Simuline Organization (l2r). All rights reserved.