类 ArrayComplex

    • 字段详细资料

      • storage

        protected Complex[] storage
    • 构造器详细资料

      • ArrayComplex

        public ArrayComplex​(int[] shape)
        Create a new Array of type double and the given shape. dimensions.length determines the rank of the new Array.
        参数:
        shape - the shape of the Array.
    • 方法详细资料

      • createView

        protected Array createView​(Index index)
        create new Array with given indexImpl and the same backing store
        指定者:
        createView 在类中 Array
        参数:
        index - use this Index
        返回:
        New Array view
      • getStorage

        public java.lang.Object getStorage()
        从类复制的说明: Array
        Get underlying primitive array storage. Exposed for efficiency, use at your own risk.
        指定者:
        getStorage 在类中 Array
        返回:
        underlying primitive array storage
      • getDataAsByteBuffer

        public java.nio.ByteBuffer getDataAsByteBuffer()
        从类复制的说明: Array
        This gets the data as a ByteBuffer, in correct order. It avoids copying if possible. Only for numeric types (byte, short, int, long, double, float)
        覆盖:
        getDataAsByteBuffer 在类中 Array
        返回:
        equivilent data in a ByteBuffer
      • getElementType

        public java.lang.Class getElementType()
        Return the element class type
        指定者:
        getElementType 在类中 Array
        返回:
        Element class type
      • get

        public Complex get​(Index i)
        get the value at the specified index.
        参数:
        i -
        返回:
      • set

        public void set​(Index i,
                        Complex value)
        set the value at the specified index.
        参数:
        i -
        value -
      • getDouble

        public double getDouble​(Index i)
        从类复制的说明: Array
        Get the array element at the current element of ima, as a double.
        指定者:
        getDouble 在类中 Array
        参数:
        i - Index with current element set
        返回:
        value at index cast to double if necessary.
      • setDouble

        public void setDouble​(Index i,
                              double value)
        从类复制的说明: Array
        Set the array element at the current element of ima.
        指定者:
        setDouble 在类中 Array
        参数:
        i - Index with current element set
        value - the new value; cast to underlying data type if necessary.
      • getFloat

        public float getFloat​(Index i)
        从类复制的说明: Array
        Get the array element at the current element of ima, as a float.
        指定者:
        getFloat 在类中 Array
        参数:
        i - Index with current element set
        返回:
        value at index cast to float if necessary.
      • setFloat

        public void setFloat​(Index i,
                             float value)
        从类复制的说明: Array
        Set the array element at the current element of ima.
        指定者:
        setFloat 在类中 Array
        参数:
        i - Index with current element set
        value - the new value; cast to underlying data type if necessary.
      • getLong

        public long getLong​(Index i)
        从类复制的说明: Array
        Get the array element at the current element of ima, as a long.
        指定者:
        getLong 在类中 Array
        参数:
        i - Index with current element set
        返回:
        value at index cast to long if necessary.
      • setLong

        public void setLong​(Index i,
                            long value)
        从类复制的说明: Array
        Set the array element at the current element of ima.
        指定者:
        setLong 在类中 Array
        参数:
        i - Index with current element set
        value - the new value; cast to underlying data type if necessary.
      • getInt

        public int getInt​(Index i)
        从类复制的说明: Array
        Get the array element at the current element of ima, as a int.
        指定者:
        getInt 在类中 Array
        参数:
        i - Index with current element set
        返回:
        value at index cast to int if necessary.
      • setInt

        public void setInt​(Index i,
                           int value)
        从类复制的说明: Array
        Set the array element at the current element of ima.
        指定者:
        setInt 在类中 Array
        参数:
        i - Index with current element set
        value - the new value; cast to underlying data type if necessary.
      • getShort

        public short getShort​(Index i)
        从类复制的说明: Array
        Get the array element at the current element of ima, as a short.
        指定者:
        getShort 在类中 Array
        参数:
        i - Index with current element set
        返回:
        value at index cast to short if necessary.
      • setShort

        public void setShort​(Index i,
                             short value)
        从类复制的说明: Array
        Set the array element at the current element of ima.
        指定者:
        setShort 在类中 Array
        参数:
        i - Index with current element set
        value - the new value; cast to underlying data type if necessary.
      • getByte

        public byte getByte​(Index i)
        从类复制的说明: Array
        Get the array element at the current element of ima, as a byte.
        指定者:
        getByte 在类中 Array
        参数:
        i - Index with current element set
        返回:
        value at index cast to float if necessary.
      • setByte

        public void setByte​(Index i,
                            byte value)
        从类复制的说明: Array
        Set the array element at the current element of ima.
        指定者:
        setByte 在类中 Array
        参数:
        i - Index with current element set
        value - the new value; cast to underlying data type if necessary.
      • getChar

        public char getChar​(Index i)
        从类复制的说明: Array
        Get the array element at the current element of ima, as a char.
        指定者:
        getChar 在类中 Array
        参数:
        i - Index with current element set
        返回:
        value at index cast to char if necessary.
      • setChar

        public void setChar​(Index i,
                            char value)
        从类复制的说明: Array
        Set the array element at the current element of ima.
        指定者:
        setChar 在类中 Array
        参数:
        i - Index with current element set
        value - the new value; cast to underlying data type if necessary.
      • getBoolean

        public boolean getBoolean​(Index i)
        not legal, throw ForbiddenConversionException
        指定者:
        getBoolean 在类中 Array
        参数:
        i - Index with current element set
        返回:
        value at index cast to boolean if necessary.
      • setBoolean

        public void setBoolean​(Index i,
                               boolean value)
        not legal, throw ForbiddenConversionException
        指定者:
        setBoolean 在类中 Array
        参数:
        i - Index with current element set
        value - the new value; cast to underlying data type if necessary.
      • getString

        public java.lang.String getString​(Index i)
        not legal, throw ForbiddenConversionException
        指定者:
        getString 在类中 Array
        参数:
        i - Index with current element set
        返回:
        value at index cast to string if necessary.
      • setString

        public void setString​(Index i,
                              java.lang.String value)
        not legal, throw ForbiddenConversionException
        指定者:
        setString 在类中 Array
        参数:
        i - Index with current element set
        value - the new value; cast to underlying data type if necessary.
      • getComplex

        public Complex getComplex​(Index i)
        not legal, throw ForbiddenConversionException
        指定者:
        getComplex 在类中 Array
        参数:
        i - Index with current element set
        返回:
        value at index cast to boolean if necessary.
      • setComplex

        public void setComplex​(Index i,
                               Complex value)
        not legal, throw ForbiddenConversionException
        指定者:
        setComplex 在类中 Array
        参数:
        i - Index with current element set
        value - the new value; cast to underlying data type if necessary.
      • getObject

        public java.lang.Object getObject​(Index i)
        从类复制的说明: Array
        Get the array element at index as an Object. The returned value is wrapped in an object, eg Double for double
        指定者:
        getObject 在类中 Array
        参数:
        i - element Index
        返回:
        Object value at index
      • setObject

        public void setObject​(Index i,
                              java.lang.Object value)
        从类复制的说明: Array
        Set the array element at index to the specified value. the value must be passed wrapped in the appropriate Object (eg Double for double)
        指定者:
        setObject 在类中 Array
        参数:
        i - Index with current element set
        value - the new value.
      • getDouble

        public double getDouble​(int index)
        指定者:
        getDouble 在类中 Array
      • setDouble

        public void setDouble​(int index,
                              double value)
        指定者:
        setDouble 在类中 Array
      • getFloat

        public float getFloat​(int index)
        指定者:
        getFloat 在类中 Array
      • setFloat

        public void setFloat​(int index,
                             float value)
        指定者:
        setFloat 在类中 Array
      • getLong

        public long getLong​(int index)
        指定者:
        getLong 在类中 Array
      • setLong

        public void setLong​(int index,
                            long value)
        指定者:
        setLong 在类中 Array
      • getInt

        public int getInt​(int index)
        指定者:
        getInt 在类中 Array
      • setInt

        public void setInt​(int index,
                           int value)
        指定者:
        setInt 在类中 Array
      • getShort

        public short getShort​(int index)
        指定者:
        getShort 在类中 Array
      • setShort

        public void setShort​(int index,
                             short value)
        指定者:
        setShort 在类中 Array
      • getByte

        public byte getByte​(int index)
        指定者:
        getByte 在类中 Array
      • setByte

        public void setByte​(int index,
                            byte value)
        指定者:
        setByte 在类中 Array
      • getChar

        public char getChar​(int index)
        指定者:
        getChar 在类中 Array
      • setChar

        public void setChar​(int index,
                            char value)
        指定者:
        setChar 在类中 Array
      • getBoolean

        public boolean getBoolean​(int index)
        指定者:
        getBoolean 在类中 Array
      • setBoolean

        public void setBoolean​(int index,
                               boolean value)
        指定者:
        setBoolean 在类中 Array
      • getString

        public java.lang.String getString​(int index)
        指定者:
        getString 在类中 Array
      • setString

        public void setString​(int index,
                              java.lang.String value)
        指定者:
        setString 在类中 Array
      • getObject

        public java.lang.Object getObject​(int index)
        指定者:
        getObject 在类中 Array
      • setObject

        public void setObject​(int index,
                              java.lang.Object value)
        指定者:
        setObject 在类中 Array