Package ucar.ma2
Class ArrayRagged
- java.lang.Object
-
- ucar.ma2.Array
-
- ucar.ma2.ArrayRagged
-
public class ArrayRagged extends Array
DO NOT USE- Since:
- Nov 15, 2008
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedArrayRagged(int[] shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Arraycopy()DO NOT USE, throws UnsupportedOperationExceptionprotected voidcopyFrom1DJavaArray(IndexIterator iter, Object javaArray)protected voidcopyTo1DJavaArray(IndexIterator iter, Object javaArray)protected ArraycreateView(Index index)DO NOT USE, throws UnsupportedOperationExceptionbooleangetBoolean(int index)booleangetBoolean(Index i)DO NOT USE, throw ForbiddenConversionExceptionbytegetByte(int index)bytegetByte(Index i)DO NOT USE, throw ForbiddenConversionExceptionchargetChar(int index)chargetChar(Index i)DO NOT USE, throw ForbiddenConversionExceptiondoublegetDouble(int index)doublegetDouble(Index i)DO NOT USE, throw ForbiddenConversionExceptionClassgetElementType()Get the element class type of this ArrayfloatgetFloat(int index)floatgetFloat(Index i)DO NOT USE, throw ForbiddenConversionExceptionintgetInt(int index)intgetInt(Index i)DO NOT USE, throw ForbiddenConversionExceptionlonggetLong(int index)longgetLong(Index i)DO NOT USE, throw ForbiddenConversionExceptionObjectgetObject(int elem)ObjectgetObject(Index ima)Get the array element at index as an Object.shortgetShort(int index)shortgetShort(Index i)DO NOT USE, throw ForbiddenConversionExceptionObjectgetStorage()Get underlying primitive array storage.voidsetBoolean(int index, boolean value)voidsetBoolean(Index i, boolean value)DO NOT USE, throw ForbiddenConversionExceptionvoidsetByte(int index, byte value)voidsetByte(Index i, byte value)DO NOT USE, throw ForbiddenConversionExceptionvoidsetChar(int index, char value)voidsetChar(Index i, char value)DO NOT USE, throw ForbiddenConversionExceptionvoidsetDouble(int index, double value)voidsetDouble(Index i, double value)DO NOT USE, throw ForbiddenConversionExceptionvoidsetFloat(int index, float value)voidsetFloat(Index i, float value)DO NOT USE, throw ForbiddenConversionExceptionvoidsetInt(int index, int value)voidsetInt(Index i, int value)DO NOT USE, throw ForbiddenConversionExceptionvoidsetLong(int index, long value)voidsetLong(Index i, long value)DO NOT USE, throw ForbiddenConversionExceptionvoidsetObject(int elem, Object value)voidsetObject(Index ima, Object value)Set the array element at index to the specified value.voidsetShort(int index, short value)voidsetShort(Index i, short value)DO NOT USE, throw ForbiddenConversionException-
Methods inherited from class ucar.ma2.Array
arraycopy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factoryConstant, factoryCopy, flip, get1DJavaArray, get1DJavaArray, getDataAsByteBuffer, getDataAsByteBuffer, getDataAsByteBuffer, getDataType, getIndex, getIndexIterator, getRangeIterator, getRank, getShape, getSize, getSizeBytes, hasNext, isConstant, isUnsigned, isVlen, makeArray, makeArray, makeArray, makeArrayRankPlusOne, makeFromJavaArray, makeFromJavaArray, makeObjectArray, makeVlenArray, next, nextBoolean, nextByte, nextChar, nextDouble, nextFloat, nextInt, nextLong, nextShort, permute, reduce, reduce, resetLocalIterator, reshape, reshapeNoCopy, section, section, section, sectionNoReduce, sectionNoReduce, shapeToString, slice, toString, transpose
-
-
-
-
Method Detail
-
getElementType
public Class getElementType()
Description copied from class:ArrayGet the element class type of this Array- Specified by:
getElementTypein classArray- Returns:
- the class of the element
-
createView
protected Array createView(Index index)
DO NOT USE, throws UnsupportedOperationException- Specified by:
createViewin classArray- Parameters:
index- use this Index- Returns:
- a view of the Array using the given Index
-
getStorage
public Object getStorage()
Description copied from class:ArrayGet underlying primitive array storage. Exposed for efficiency, use at your own risk.- Specified by:
getStoragein classArray- Returns:
- underlying primitive array storage
-
copyFrom1DJavaArray
protected void copyFrom1DJavaArray(IndexIterator iter, Object javaArray)
- Specified by:
copyFrom1DJavaArrayin classArray
-
copyTo1DJavaArray
protected void copyTo1DJavaArray(IndexIterator iter, Object javaArray)
- Specified by:
copyTo1DJavaArrayin classArray
-
copy
public Array copy()
DO NOT USE, throws UnsupportedOperationException
-
getDouble
public double getDouble(Index i)
DO NOT USE, throw ForbiddenConversionException
-
setDouble
public void setDouble(Index i, double value)
DO NOT USE, throw ForbiddenConversionException
-
getFloat
public float getFloat(Index i)
DO NOT USE, throw ForbiddenConversionException
-
setFloat
public void setFloat(Index i, float value)
DO NOT USE, throw ForbiddenConversionException
-
getLong
public long getLong(Index i)
DO NOT USE, throw ForbiddenConversionException
-
setLong
public void setLong(Index i, long value)
DO NOT USE, throw ForbiddenConversionException
-
getInt
public int getInt(Index i)
DO NOT USE, throw ForbiddenConversionException
-
setInt
public void setInt(Index i, int value)
DO NOT USE, throw ForbiddenConversionException
-
getShort
public short getShort(Index i)
DO NOT USE, throw ForbiddenConversionException
-
setShort
public void setShort(Index i, short value)
DO NOT USE, throw ForbiddenConversionException
-
getByte
public byte getByte(Index i)
DO NOT USE, throw ForbiddenConversionException
-
setByte
public void setByte(Index i, byte value)
DO NOT USE, throw ForbiddenConversionException
-
getBoolean
public boolean getBoolean(Index i)
DO NOT USE, throw ForbiddenConversionException- Specified by:
getBooleanin classArray- Parameters:
i- Index with current element set- Returns:
- value at
indexcast to boolean if necessary.
-
setBoolean
public void setBoolean(Index i, boolean value)
DO NOT USE, throw ForbiddenConversionException- Specified by:
setBooleanin classArray- Parameters:
i- Index with current element setvalue- the new value; cast to underlying data type if necessary.
-
getObject
public Object getObject(Index ima)
Description copied from class:ArrayGet the array element at index as an Object. The returned value is wrapped in an object, eg Double for double
-
setObject
public void setObject(Index ima, Object value)
Description copied from class:ArraySet the array element at index to the specified value. the value must be passed wrapped in the appropriate Object (eg Double for double)
-
getChar
public char getChar(Index i)
DO NOT USE, throw ForbiddenConversionException
-
setChar
public void setChar(Index i, char value)
DO NOT USE, throw ForbiddenConversionException
-
getBoolean
public boolean getBoolean(int index)
- Specified by:
getBooleanin classArray
-
setBoolean
public void setBoolean(int index, boolean value)- Specified by:
setBooleanin classArray
-
-