public final class OctaveInt extends AbstractGenericMatrix<int[],it.unimi.dsi.fastutil.ints.IntArrayList>
dataL, size| Modifier | Constructor and Description |
|---|---|
|
OctaveInt(int... size)
Create new matrix.
|
|
OctaveInt(int[] data,
int... size)
Constructor that reuses the input data.
|
protected |
OctaveInt(OctaveInt o)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
get(int... pos)
Get the value.
|
protected int[] |
getDataA()
Returns the data store as an array.
|
String |
getPlainString(int pos)
Returns the string representation of the given plain position.
|
protected int |
initL(int[] data,
int size) |
protected it.unimi.dsi.fastutil.ints.IntArrayList |
newL(int size)
Returns a new data store with given size
and entries carrying the default value.
|
void |
set(int value,
int... pos)
Set the value resizing by need.
|
void |
setPlain(int value,
int pos)
Set the value assuming resize is not necessary.
|
void |
setPlain(String value,
int pos)
Sets the entry with plain position
pos
to value parsing the string value. |
OctaveInt |
shallowCopy()
Make a shallow copy of this object.
|
dataSize, equals, getSize, getSizeLength, hashCode, main, pos2ind, resizeUppublic OctaveInt(int... size)
size - public OctaveInt(int[] data,
int... size)
data - size - protected OctaveInt(OctaveInt o)
o - protected final it.unimi.dsi.fastutil.ints.IntArrayList newL(int size)
AbstractGenericMatrixnewL in class AbstractGenericMatrix<int[],it.unimi.dsi.fastutil.ints.IntArrayList>protected final int initL(int[] data,
int size)
initL in class AbstractGenericMatrix<int[],it.unimi.dsi.fastutil.ints.IntArrayList>protected int[] getDataA()
AbstractGenericMatrixgetDataA in class AbstractGenericMatrix<int[],it.unimi.dsi.fastutil.ints.IntArrayList>public final void set(int value,
int... pos)
value - pos - setPlain(int, int)public final void setPlain(int value,
int pos)
value - pos - set(int, 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<int[],it.unimi.dsi.fastutil.ints.IntArrayList>pos - see e.g. AbstractObjectMatrix.setPlain(String, int)
and OctaveDouble.setPlain(String, int)public final int get(int... pos)
pos - public final String getPlainString(int pos)
AbstractGenericMatrixgetPlainString in class AbstractGenericMatrix<int[],it.unimi.dsi.fastutil.ints.IntArrayList>public OctaveInt shallowCopy()
OctaveObjectOctaveObject is returned from a getter,
e.g. on OctaveStruct or OctaveStruct,
a shallow copy is returned in order to follow the way octave behaves.
This method is used to make that copy.shallowCopy in interface OctaveObjectshallowCopy in class AbstractGenericMatrix<int[],it.unimi.dsi.fastutil.ints.IntArrayList>Copyright © 2006–2018 Simuline Organization (l2r). All rights reserved.