public class IntegerFunctionDoublyPeriodicOnIntegersCrossIntegers extends Object implements IntegerFunction.DoublyPeriodicOnIntegersCrossIntegers
IntegerFunction.DoublyPeriodicOnIntegersCrossIntegers
.
Function values are stored internally, so using this class to make a copy of a
IntegerFunction.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 |
---|
IntegerFunctionDoublyPeriodicOnIntegersCrossIntegers()
Creates a doubly periodic matrix with 1 row and 1 column.
|
IntegerFunctionDoublyPeriodicOnIntegersCrossIntegers(IntegerFunction.DoublyPeriodicOnIntegersCrossIntegers c)
Creates a copy of the function
c |
IntegerFunctionDoublyPeriodicOnIntegersCrossIntegers(IntegerFunction.OnIndexCrossIndex c)
Creates a doubly periodic extension of
c |
IntegerFunctionDoublyPeriodicOnIntegersCrossIntegers(int m,
int n)
Creates a doubly periodic matrix with
m rows,
n columns and all values zero. |
Modifier and Type | Method and Description |
---|---|
void |
assign(IntegerFunction.DoublyPeriodicOnIntegersCrossIntegers c)
Become a copy of
c |
void |
assign(IntegerFunction.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,
int z)
Sets the value at index
i,j to z . |
int |
valueAt(int i,
int j)
returns the value of this function at
i,j . |
public IntegerFunctionDoublyPeriodicOnIntegersCrossIntegers()
public IntegerFunctionDoublyPeriodicOnIntegersCrossIntegers(IntegerFunction.DoublyPeriodicOnIntegersCrossIntegers c)
c
public IntegerFunctionDoublyPeriodicOnIntegersCrossIntegers(IntegerFunction.OnIndexCrossIndex c)
c
public IntegerFunctionDoublyPeriodicOnIntegersCrossIntegers(int m, int n)
m
rows,
n
columns and all values zero.m
- must be at least one.n
- must at least one.public void assign(IntegerFunction.DoublyPeriodicOnIntegersCrossIntegers c)
c
public void assign(IntegerFunction.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, int z)
i,j
to z
.public int valueAt(int i, int j)
i,j
.