org.ujmp.core.objectmatrix.calculation
Class Transpose

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.Transpose
All Implemented Interfaces:
Serializable, Calculation, ObjectCalculation

public class Transpose
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
Transpose(Matrix m)
           
Transpose(Matrix m, int swap1, int swap2)
           
 
Method Summary
 Iterable<long[]> availableCoordinates()
           
 boolean contains(long... coordinates)
           
 Object getObject(long... coordinates)
           
 long[] getSize()
           
 long getValueCount()
           
 boolean isSparse()
           
static Annotation transposeAnnotation(Annotation annotation, long[] newSize)
           
static Annotation transposeAnnotation(Annotation aorig, long[] newSize, int swap1, int swap2)
           
 
Methods inherited from class org.ujmp.core.objectmatrix.calculation.AbstractObjectCalculation
calcLink, calcNew, calcOrig, getValueType, setObject
 
Methods inherited from class org.ujmp.core.calculation.AbstractCalculation
allCoordinates, calc, calcMulti, getAnnotation, getDimension, getSource, getSources, getStorageType, 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, calc, calcMulti, getAnnotation, getDimension, getSource, getSources, getStorageType, setAnnotation, setDimension, setSources
 

Constructor Detail

Transpose

public Transpose(Matrix m)

Transpose

public Transpose(Matrix m,
                 int swap1,
                 int swap2)
Method Detail

transposeAnnotation

public static Annotation transposeAnnotation(Annotation aorig,
                                             long[] newSize,
                                             int swap1,
                                             int swap2)

getObject

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

getSize

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

contains

public boolean contains(long... coordinates)
Specified by:
contains in interface Calculation
Overrides:
contains in class AbstractCalculation

isSparse

public boolean isSparse()
Specified by:
isSparse in interface Calculation
Overrides:
isSparse in class AbstractCalculation

getValueCount

public long getValueCount()
Specified by:
getValueCount in interface Calculation
Overrides:
getValueCount in class AbstractCalculation

availableCoordinates

public Iterable<long[]> availableCoordinates()
Specified by:
availableCoordinates in interface Calculation
Overrides:
availableCoordinates in class AbstractCalculation

transposeAnnotation

public static Annotation transposeAnnotation(Annotation annotation,
                                             long[] newSize)


Copyright © 2010. All Rights Reserved.