public final class OctaveComplex extends Object implements OctaveObject
| Modifier and Type | Field and Description |
|---|---|
private OctaveDouble |
imag |
private OctaveDouble |
real |
| Constructor and Description |
|---|
OctaveComplex(int... size) |
OctaveComplex(OctaveComplex o)
Copy constructor.
|
OctaveComplex(OctaveDouble r) |
| Modifier and Type | Method and Description |
|---|---|
double |
getImag(int... pos) |
double |
getReal(int... pos) |
int |
getSize(int i) |
int |
pos2ind(int... pos) |
void |
setImag(double value,
int... pos) |
void |
setReal(double value,
int... pos) |
OctaveComplex |
shallowCopy()
Make a shallow copy of this object.
|
private final OctaveDouble real
private final OctaveDouble imag
public OctaveComplex(int... size)
size - public OctaveComplex(OctaveComplex o)
o - public OctaveComplex(OctaveDouble r)
public int getSize(int i)
i - dimension number in 1 based numbering, 1=row, 2=columnpublic int pos2ind(int... pos)
pos - AbstractGenericMatrix.pos2ind(int[])public void setReal(double value,
int... pos)
value - pos - public double getReal(int... pos)
pos - public void setImag(double value,
int... pos)
value - pos - public double getImag(int... pos)
pos - public OctaveComplex 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 OctaveObjectCopyright © 2006–2018 Simuline Organization (l2r). All rights reserved.