Class OctaveComplex

    • Constructor Detail

      • OctaveComplex

        public OctaveComplex​(int... size)
        Parameters:
        size -
      • OctaveComplex

        public OctaveComplex​(OctaveComplex o)
        Copy constructor.
        Parameters:
        o -
    • Method Detail

      • getSize

        public int getSize​(int i)
        Parameters:
        i - dimension number in 1 based numbering, 1=row, 2=column
        Returns:
        the size in dimension i
      • setReal

        public void setReal​(double value,
                            int... pos)
        Parameters:
        value -
        pos -
      • getReal

        public double getReal​(int... pos)
        Parameters:
        pos -
        Returns:
        the real value stored at pos
      • setImag

        public void setImag​(double value,
                            int... pos)
        Parameters:
        value -
        pos -
      • getImag

        public double getImag​(int... pos)
        Parameters:
        pos -
        Returns:
        the imaginary value stored at pos
      • shallowCopy

        public OctaveComplex shallowCopy()
        Description copied from interface: OctaveObject
        Make a shallow copy of this object. In general when an OctaveObject is returned from a getter, e.g. on OctaveStruct or OctaveStruct, a shallow copy is returned in order to follow the way octave behaves. This method is used to make that copy.
        Specified by:
        shallowCopy in interface OctaveObject
        Returns:
        a shallow copy of this