org.ujmp.core.objectmatrix.calculation
Class Reshape

java.lang.Object
  extended by org.ujmp.core.calculation.AbstractCalculation
      extended by org.ujmp.core.objectmatrix.calculation.AbstractObjectCalculation
          extended by org.ujmp.core.objectmatrix.calculation.Reshape
All Implemented Interfaces:
Serializable, Calculation, ObjectCalculation
Direct Known Subclasses:
Squeeze

public class Reshape
extends AbstractObjectCalculation

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ujmp.core.calculation.Calculation
Calculation.Ret
 
Field Summary
 
Fields inherited from interface org.ujmp.core.calculation.Calculation
ALL, COLUMN, LINK, NEW, NONE, ORIG, ROW
 
Constructor Summary
Reshape(Matrix source, long... newSize)
           
 
Method Summary
 Object getObject(long... coordinates)
           
 long[] getSize()
           
 void setObject(Object value, long... coordinates)
           
 
Methods inherited from class org.ujmp.core.objectmatrix.calculation.AbstractObjectCalculation
calcLink, calcNew, calcOrig, getValueType
 
Methods inherited from class org.ujmp.core.calculation.AbstractCalculation
allCoordinates, availableCoordinates, calc, calcMulti, contains, getAnnotation, getDimension, getSource, getSources, getStorageType, getValueCount, isSparse, setAnnotation, setDimension, setSources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ujmp.core.calculation.Calculation
allCoordinates, availableCoordinates, calc, calcMulti, contains, getAnnotation, getDimension, getSource, getSources, getStorageType, getValueCount, isSparse, setAnnotation, setDimension, setSources
 

Constructor Detail

Reshape

public Reshape(Matrix source,
               long... newSize)
Method Detail

getSize

public long[] getSize()
Specified by:
getSize in interface Calculation
Overrides:
getSize in class AbstractCalculation

getObject

public Object getObject(long... coordinates)
                 throws MatrixException
Throws:
MatrixException

setObject

public void setObject(Object value,
                      long... coordinates)
               throws MatrixException
Specified by:
setObject in interface ObjectCalculation
Overrides:
setObject in class AbstractObjectCalculation
Throws:
MatrixException


Copyright © 2010. All Rights Reserved.