Skip navigation links
function by
jTEM
de.jtem.function.complex

Class ComplexFunctionDoublyPeriodicOnIndexCrossIntegersCrossIntegers

    • Constructor Detail

      • ComplexFunctionDoublyPeriodicOnIndexCrossIntegersCrossIntegers

        public ComplexFunctionDoublyPeriodicOnIndexCrossIntegersCrossIntegers()
        Creates a grid with 1 layer, 1 row and 1 column and value zero.
      • ComplexFunctionDoublyPeriodicOnIndexCrossIntegersCrossIntegers

        public ComplexFunctionDoublyPeriodicOnIndexCrossIntegersCrossIntegers(ComplexFunctionOnIndexCrossIndexCrossIndex c)
        Creates a doubly periodic extension of c.
      • ComplexFunctionDoublyPeriodicOnIndexCrossIntegersCrossIntegers

        public ComplexFunctionDoublyPeriodicOnIndexCrossIntegersCrossIntegers(int k,
                                                                              int m,
                                                                              int n)
        Creates a grid with m layers, columns of period m, rows of period n and all values zero.
    • Method Detail

      • assignZero

        public void assignZero()
        Keep the number of layers and the periods but set all values to zero.
      • assignZero

        public 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.
        Parameters:
        k - must be at least one.
        m - must be at least one.
        n - must be at least one.
      • getNumLayers

        public int getNumLayers()
        Returns the number of layers (the range of the third variable of this function).
      • getPeriod

        public int getPeriod()
        Returns the period of this function (a positive integer), refering to the behaviour in the last coordinate.
      • getSecondPeriod

        public int getSecondPeriod()
        Returns the second period of this function (a positive integer), refering to the behaviour in the last but one coordinate.
      • setSize

        public void setSize(int k,
                            int m,
                            int n)
        Do nothing if k is equal to the current number of layers, m is equal to the current second period and n is equal to the current period. Otherwise become a doubly periodic matrix with k layers, m rows, n columns and all values zero.
        Parameters:
        m - must be at least one.
        n - must be at least one.
      • setValueAt

        public void setValueAt(int h,
                               int i,
                               int j,
                               de.jtem.mfc.field.Complex z)
        Sets the value at index i,j to z.
        Parameters:
        i - must be non-negative and less than getNumRows().
      • valueAt

        public de.jtem.mfc.field.Complex valueAt(int h,
                                                 int i,
                                                 int j)
        returns the value of this function at i,j,k.

jTEM