public class QuaternionFunctionDoublyPeriodicOnIntegersCrossIntegers extends Object implements QuaternionFunction.DoublyPeriodicOnIntegersCrossIntegers
QuaternionFunction.DoublyPeriodicOnIntegersCrossIntegers
.
Function values are stored
internally, so using this class to make a copy of a
QuaternionFunction.DoublyPeriodicOnIntegersCrossIntegers 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 |
---|
QuaternionFunctionDoublyPeriodicOnIntegersCrossIntegers()
Creates a doubly periodic matrix with 1 row and 1 column.
|
QuaternionFunctionDoublyPeriodicOnIntegersCrossIntegers(int m,
int n)
Creates a doubly periodic matrix with
m rows,
n columns and all values zero. |
QuaternionFunctionDoublyPeriodicOnIntegersCrossIntegers(QuaternionFunction.DoublyPeriodicOnIntegersCrossIntegers c)
Creates a copy of the function
c |
QuaternionFunctionDoublyPeriodicOnIntegersCrossIntegers(QuaternionFunction.OnIndexCrossIndex c)
Creates a doubly periodic extension of
c |
Modifier and Type | Method and Description |
---|---|
void |
assign(QuaternionFunction.DoublyPeriodicOnIntegersCrossIntegers c)
Become a copy of
c |
void |
assign(QuaternionFunction.OnIndexCrossIndex c)
Become a doubly periodic extension 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 |
getPeriod()
Returns the period of this function (a positive integer),
refering to the behaviour in the last coordinate.
|
int |
getSecondPeriod()
Returns the second period of this function (a positive integer),
refering to the behaviour in the last but one 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, otherwise become
a doubly periodic matrix with m rows, n
columns and all values zero. |
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 QuaternionFunctionDoublyPeriodicOnIntegersCrossIntegers()
public QuaternionFunctionDoublyPeriodicOnIntegersCrossIntegers(int m, int n)
m
rows,
n
columns and all values zero.m
- must be at least one.n
- must at least one.public QuaternionFunctionDoublyPeriodicOnIntegersCrossIntegers(QuaternionFunction.DoublyPeriodicOnIntegersCrossIntegers c)
c
public QuaternionFunctionDoublyPeriodicOnIntegersCrossIntegers(QuaternionFunction.OnIndexCrossIndex c)
c
public void assign(QuaternionFunction.DoublyPeriodicOnIntegersCrossIntegers c)
c
public void assign(QuaternionFunction.OnIndexCrossIndex 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 at least one.public int getPeriod()
public int getSecondPeriod()
public void setSize(int m, int n)
m
is equal to the current number of rows and
n
is equal to the current period, otherwise become
a doubly periodic matrix with m
rows, n
columns and all values zero.m
- must be at least one.n
- must at least one.public void setValueAt(int i, int j, de.jtem.mfc.field.Quaternion z)
i,j
to z
.public de.jtem.mfc.field.Quaternion valueAt(int i, int j)
i,j
.