public final class OctaveDouble extends AbstractGenericMatrix<double[],it.unimi.dsi.fastutil.doubles.DoubleArrayList>
dataL, size| Modifier | Constructor and Description |
|---|---|
|
OctaveDouble(double[] data,
int... size)
Constructor that reuses the input data.
|
|
OctaveDouble(int... size)
Create new matrix.
|
protected |
OctaveDouble(OctaveDouble o)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
get(int... pos)
Get the value.
|
protected double[] |
getDataA()
Returns the data store as an array.
|
String |
getPlainString(int pos)
Returns the string representation of the given plain position.
|
protected int |
initL(double[] data,
int size) |
protected it.unimi.dsi.fastutil.doubles.DoubleArrayList |
newL(int size)
Returns a new data store with given size
and entries carrying the default value.
|
void |
set(double value,
int... pos)
Set the value resizing by need.
|
void |
setPlain(double 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. |
OctaveDouble |
shallowCopy()
Make a shallow copy of this object.
|
OctaveDouble |
zero() |
dataSize, equals, getSize, getSizeLength, hashCode, main, pos2ind, resizeUppublic OctaveDouble(int... size)
size - public OctaveDouble(double[] data,
int... size)
data - size - protected OctaveDouble(OctaveDouble o)
o - protected final it.unimi.dsi.fastutil.doubles.DoubleArrayList newL(int size)
AbstractGenericMatrixnewL in class AbstractGenericMatrix<double[],it.unimi.dsi.fastutil.doubles.DoubleArrayList>protected final int initL(double[] data,
int size)
initL in class AbstractGenericMatrix<double[],it.unimi.dsi.fastutil.doubles.DoubleArrayList>protected double[] getDataA()
AbstractGenericMatrixgetDataA in class AbstractGenericMatrix<double[],it.unimi.dsi.fastutil.doubles.DoubleArrayList>public final void set(double value,
int... pos)
value - pos - setPlain(double, int)public final void setPlain(double value,
int pos)
value - pos - set(double, 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<double[],it.unimi.dsi.fastutil.doubles.DoubleArrayList>pos - see e.g. AbstractObjectMatrix.setPlain(String, int)
and setPlain(String, int)public final double get(int... pos)
pos - public final String getPlainString(int pos)
AbstractGenericMatrixgetPlainString in class AbstractGenericMatrix<double[],it.unimi.dsi.fastutil.doubles.DoubleArrayList>public OctaveDouble zero()
public OctaveDouble 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<double[],it.unimi.dsi.fastutil.doubles.DoubleArrayList>Copyright © 2006–2018 Simuline Organization (l2r). All rights reserved.