public class IntegerFunctionTriplyPeriodicOnIntegersCrossIntegersCrossIntegers extends Object implements IntegerFunction.TriplyPeriodicOnIntegersCrossIntegersCrossIntegers
IntegerFunction.TriplyPeriodicOnIntegersCrossIntegersCrossIntegers
.
Function values are stored
internally, so using this class to make a copy of a
IntegerFunction.TriplyPeriodicOnIntegersCrossIntegersCrossIntegers 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 |
---|
IntegerFunctionTriplyPeriodicOnIntegersCrossIntegersCrossIntegers()
Creates a grid with 1 layer, 1 row and 1 column and value zero.
|
IntegerFunctionTriplyPeriodicOnIntegersCrossIntegersCrossIntegers(IntegerFunction.OnIndexCrossIndexCrossIndex c)
Creates a copy of the triply periodic extension of
c . |
IntegerFunctionTriplyPeriodicOnIntegersCrossIntegersCrossIntegers(IntegerFunction.TriplyPeriodicOnIntegersCrossIntegersCrossIntegers c)
Creates a copy of the function
c |
IntegerFunctionTriplyPeriodicOnIntegersCrossIntegersCrossIntegers(int k,
int m,
int n)
Creates a grid with
k layers, m periodic rows,
, n periodic columns and all values zero. |
Modifier and Type | Method and Description |
---|---|
void |
assign(IntegerFunction.OnIndexCrossIndexCrossIndex c)
Become a copy of the triply periodic extension of
c |
void |
assign(IntegerFunction.TriplyPeriodicOnIntegersCrossIntegersCrossIntegers c)
Become a copy of
c |
void |
assignZero()
Keep the number of layers and the periods but set all values to zero.
|
void |
assignZero(int k,
int m,
int n)
Become a matrix with
m layers, m periodic
rows of period n , periodic columns of period
m 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.
|
int |
getThirdPeriod()
Returns the third period of this function (a positive integer),
refering to the behaviour in the first coordinate.
|
void |
setSize(int k,
int m,
int n)
Do nothing if
k is equal to the current third period,
m is equal to the current second period and
n is equal to the current period. |
void |
setValueAt(int h,
int i,
int j,
int z)
Sets the value at index
h,i,j to z . |
int |
valueAt(int h,
int i,
int j)
returns the value of this function at
i,j,k . |
public IntegerFunctionTriplyPeriodicOnIntegersCrossIntegersCrossIntegers()
public IntegerFunctionTriplyPeriodicOnIntegersCrossIntegersCrossIntegers(IntegerFunction.OnIndexCrossIndexCrossIndex c)
c
.public IntegerFunctionTriplyPeriodicOnIntegersCrossIntegersCrossIntegers(IntegerFunction.TriplyPeriodicOnIntegersCrossIntegersCrossIntegers c)
c
public IntegerFunctionTriplyPeriodicOnIntegersCrossIntegersCrossIntegers(int k, int m, int n)
k
layers, m
periodic rows,
, n
periodic columns and all values zero.k
- must be at least one.m
- must be at least one.n
- must be at least one.public void assign(IntegerFunction.OnIndexCrossIndexCrossIndex c)
c
public void assign(IntegerFunction.TriplyPeriodicOnIntegersCrossIntegersCrossIntegers c)
c
public void assignZero()
public void assignZero(int k, int m, int n)
m
layers, m
periodic
rows of period n
, periodic columns of period
m
and all values zero.k
- must be at least one.m
- must be at least one.n
- must be at least one.public int getPeriod()
public int getSecondPeriod()
public int getThirdPeriod()
Domain.TriplyPeriodicOnIntegersCrossIntegersCrossIntegers
getThirdPeriod
in interface Domain.TriplyPeriodicOnIntegersCrossIntegersCrossIntegers
public void setSize(int k, int m, int n)
k
is equal to the current third period,
m
is equal to the current second period and
n
is equal to the current period. Otherwise become
a triply periodic matrix with k
layers, m
rows,
n
columns and all values zero.k
- must be at least one.m
- must be at least one.n
- must be at least one.public void setValueAt(int h, int i, int j, int z)
h,i,j
to z
.public int valueAt(int h, int i, int j)
i,j,k
.