public class ComplexFunctionOnIndex extends Object implements ComplexFunction.OnIndex
ComplexFunction.OnIndex
. Function values are stored
internally, so using this class to make a copy of a
ComplexFunction.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 |
---|
ComplexFunctionOnIndex() |
ComplexFunctionOnIndex(de.jtem.mfc.field.Complex[] c)
Interpret the array
c as an n-tupel of complex numbers
and create a copy of it. |
ComplexFunctionOnIndex(ComplexFunction.OnIndex c)
Creates a copy of the tupel
c |
ComplexFunctionOnIndex(int n)
Creates a tupel of
n zeroes. |
Modifier and Type | Method and Description |
---|---|
void |
assign(de.jtem.mfc.field.Complex[] c)
Interpret the array
c as an n-tupel of Complex numbers
and become a copy of it. |
void |
assign(ComplexFunction.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.Complex x)
Set the value at index j to x.
|
de.jtem.mfc.field.Complex |
valueAt(int j)
returns the value of this function at
j . |
public ComplexFunctionOnIndex()
public ComplexFunctionOnIndex(de.jtem.mfc.field.Complex[] c)
c
as an n-tupel of complex numbers
and create a copy of it.public ComplexFunctionOnIndex(ComplexFunction.OnIndex c)
c
public ComplexFunctionOnIndex(int n)
n
zeroes.public void assign(de.jtem.mfc.field.Complex[] c)
c
as an n-tupel of Complex numbers
and become a copy of it.public void assign(ComplexFunction.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.Complex x)
public de.jtem.mfc.field.Complex valueAt(int j)
j
.