ucar.multiarray
Class SliceMap
java.lang.Object
ucar.multiarray.ConcreteIndexMap
ucar.multiarray.SliceMap
- All Implemented Interfaces:
- IndexMap
public class SliceMap
- extends ConcreteIndexMap
Use with MultiArrayProxy to reduce the apparent rank of
the delegate by fixing an index at particular value.
- Version:
- $Revision: 1.2 $ $Date: 2002/05/29 20:32:40 $
- Author:
- $Author: steve $
- See Also:
IndexMap
,
MultiArrayProxy
Constructor Summary |
SliceMap(ConcreteIndexMap prev,
int position,
int value)
Create an ConcreteIndexMap which fixes the key for a particular
dimension at a particular value and is functionally composed
with another ConcreteIndexMap. |
SliceMap(int position,
int value)
Create an ConcreteIndexMap which fixes the key for a particular
dimension at a particular value. |
Methods inherited from class ucar.multiarray.ConcreteIndexMap |
getLengths, getOutputLength, getRank, getTransformed, init, init, link, link, setInput, setLengths, toString, transform |
SliceMap
public SliceMap(int position,
int value)
- Create an ConcreteIndexMap which fixes the key for a particular
dimension at a particular value.
- Parameters:
position
- the dimension number on which to fix the key.value
- the value at which to fix the key.
SliceMap
public SliceMap(ConcreteIndexMap prev,
int position,
int value)
- Create an ConcreteIndexMap which fixes the key for a particular
dimension at a particular value and is functionally composed
with another ConcreteIndexMap.
- Parameters:
prev
- ConcreteIndexMap to be composed with this.position
- the dimension number on which to fix the key.value
- the value at which to fix the key.
main
public static void main(String[] args)