public class QuaternionFunctionOnIndex extends Object implements QuaternionFunction.OnIndex
QuaternionFunction.OnIndex
. Function values are stored
internally, so using this class to make a copy of a
QuaternionFunction.OnIndex c
(by the corresponding
constructor or the assign method) will make a snapshot of the current state
of c
. No reference to c
itself is retained.Constructor and Description |
---|
QuaternionFunctionOnIndex() |
QuaternionFunctionOnIndex(int n)
Creates a tupel of
n zeroes. |
QuaternionFunctionOnIndex(de.jtem.mfc.field.Quaternion[] c)
Interpret the array
c as an n-tupel of complex numbers
and create a copy of it. |
QuaternionFunctionOnIndex(QuaternionFunction.OnIndex c)
Creates a copy of the tupel
c |
Modifier and Type | Method and Description |
---|---|
void |
assign(de.jtem.mfc.field.Quaternion[] c)
Interpret the array
c as an n-tupel of Quaternion numbers
and become a copy of it. |
void |
assign(QuaternionFunction.OnIndex c)
Become a copy of the tupel
c |
void |
assignZero()
Keep the number of indices but set all values to zero.
|
void |
assignZero(int n)
Become a tupel of
n zeroes. |
int |
getNumIndices()
Returns the number of indices (a non-negative integer).
|
void |
setNumIndices(int n)
Do nothing if
n is equal to the current number of
indices, become a tupel of n zeroes otherwise. |
void |
setValueAt(int j,
de.jtem.mfc.field.Quaternion x)
Set the value at index j to x.
|
de.jtem.mfc.field.Quaternion |
valueAt(int j)
returns the value of this function at
j . |
public QuaternionFunctionOnIndex()
public QuaternionFunctionOnIndex(int n)
n
zeroes.public QuaternionFunctionOnIndex(de.jtem.mfc.field.Quaternion[] c)
c
as an n-tupel of complex numbers
and create a copy of it.public QuaternionFunctionOnIndex(QuaternionFunction.OnIndex c)
c
public void assign(de.jtem.mfc.field.Quaternion[] c)
c
as an n-tupel of Quaternion numbers
and become a copy of it.public void assign(QuaternionFunction.OnIndex c)
c
public void assignZero()
public void assignZero(int n)
n
zeroes.public int getNumIndices()
Domain.OnIndex
getNumIndices
in interface Domain.OnIndex
public void setNumIndices(int n)
n
is equal to the current number of
indices, become a tupel of n
zeroes otherwise.n
- must at least one.public void setValueAt(int j, de.jtem.mfc.field.Quaternion x)
public de.jtem.mfc.field.Quaternion valueAt(int j)
j
.