public class QuaternionFunctionPeriodicOnIndexCrossIntegers extends Object implements QuaternionFunction.PeriodicOnIndexCrossIntegers
QuaternionFunction.PeriodicOnIndexCrossIntegers
.
Function values are stored internally, so using this class to make a copy of
a QuaternionFunction.PeriodicOnIndexCrossIntegers 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 |
---|
QuaternionFunctionPeriodicOnIndexCrossIntegers()
Creates a grid with 1 row and no columns.
|
QuaternionFunctionPeriodicOnIndexCrossIntegers(int m,
int n)
Creates a grid with
m rows, period n
and all values zero. |
QuaternionFunctionPeriodicOnIndexCrossIntegers(QuaternionFunction.PeriodicOnIndexCrossIntegers c)
Creates a copy of the function
c |
Modifier and Type | Method and Description |
---|---|
void |
assign(QuaternionFunction.OnIndexCrossIndex c)
Become a copy of the periodic extension of
c |
void |
assign(QuaternionFunction.PeriodicOnIndexCrossIntegers c)
Become a copy of
c |
void |
assignZero()
Keep the number of rows and the period but set all values to zero.
|
void |
assignZero(int m,
int n)
Become a matrix with
m periodic rows of period
n and all values zero. |
int |
getNumRows()
Returns the number of rows (the range of the first variable of
this function).
|
int |
getPeriod()
Returns the period of this function (a positive integer),
refering to the behaviour in the last coordinate.
|
void |
setSize(int m,
int n)
Do nothing if
m is equal to the current number of rows and
n is equal to the current period, become
a matrix with m periodic rows of period code>n
and all values zero otherwise. |
void |
setValueAt(int i,
int j,
de.jtem.mfc.field.Quaternion z)
Sets the value at index
i,j to z . |
de.jtem.mfc.field.Quaternion |
valueAt(int i,
int j)
returns the value of this function at
i,j . |
public QuaternionFunctionPeriodicOnIndexCrossIntegers()
public QuaternionFunctionPeriodicOnIndexCrossIntegers(int m, int n)
m
rows, period n
and all values zero.public QuaternionFunctionPeriodicOnIndexCrossIntegers(QuaternionFunction.PeriodicOnIndexCrossIntegers c)
c
public void assign(QuaternionFunction.OnIndexCrossIndex c)
c
public void assign(QuaternionFunction.PeriodicOnIndexCrossIntegers c)
c
public void assignZero()
public void assignZero(int m, int n)
m
periodic rows of period
n
and all values zero.m
- must be at least one.n
- must be at least one.public int getNumRows()
public int getPeriod()
public void setSize(int m, int n)
m
is equal to the current number of rows and
n
is equal to the current period, become
a matrix with m
periodic rows of period code>n
and all values zero otherwise.m
- must be at least one.n
- must be at least one.public void setValueAt(int i, int j, de.jtem.mfc.field.Quaternion z)
i,j
to z
.i
- must be non-negative and less than getNumRows()
.public de.jtem.mfc.field.Quaternion valueAt(int i, int j)
i,j
.