ucar.multiarray
Class TransposeMap
java.lang.Object
ucar.multiarray.ConcreteIndexMap
ucar.multiarray.TransposeMap
- All Implemented Interfaces:
- IndexMap
public class TransposeMap
- extends ConcreteIndexMap
Use with MultiArrayProxy to transpose two dimensions.
- Version:
- $Revision: 1.2 $ $Date: 2002/05/29 20:32:41 $
- Author:
- $Author: steve $
- See Also:
IndexMap
,
MultiArrayProxy
Methods inherited from class ucar.multiarray.ConcreteIndexMap |
getLengths, getOutputLength, getRank, getTransformed, init, init, link, link, setInput, setLengths, toString, transform |
TransposeMap
public TransposeMap(int aa,
int bb)
- Create an IndexMap which swaps two dimensions.
- Parameters:
aa
- specifies one of the dimensions to swapbb
- specifies the other dimension to swap
TransposeMap
public TransposeMap(ConcreteIndexMap prev,
int aa,
int bb)
- Create an IndexMap which swaps two dimensions.
- Parameters:
prev
- IndexMap to be composed with this.aa
- specifies one of the dimensions to swapbb
- specifies the other dimension to swap
main
public static void main(String[] args)