mikera.transformz.impl
Class AOpTransform
- java.lang.Object
-
- mikera.transformz.ATransform
-
- mikera.transformz.impl.AOpTransform
-
- All Implemented Interfaces:
- java.lang.Cloneable, ITransform
public class AOpTransform extends ATransform
A transform the represents the application of an operator to all elements of a vector
-
-
Constructor Summary
Constructors Constructor and Description AOpTransform(Op op, int dims)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecalculateElement(int i, AVector inputVector)Calculates a single element of the output.intinputDimensions()Returns the number of dimensions required for input vectorsintoutputDimensions()Returns the number of dimensions required for output vectorsvoidtransform(AVector source, AVector dest)Transforms the source vector, storing the result in the given destination vector-
Methods inherited from class mikera.transformz.ATransform
clone, compose, composeWith, inverse, isIdentity, isInvertible, isLinear, isSquare, takeComponents, takeComponents, takeComponents, transform, transform, transformInPlace
-
-
-
-
Constructor Detail
-
AOpTransform
public AOpTransform(Op op, int dims)
-
-
Method Detail
-
transform
public void transform(AVector source, AVector dest)
Description copied from interface:ITransformTransforms the source vector, storing the result in the given destination vector- Specified by:
transformin interfaceITransform- Specified by:
transformin classATransform
-
calculateElement
public double calculateElement(int i, AVector inputVector)Description copied from class:ATransformCalculates a single element of the output. Not necessarily faster than calculating full output, but can be in some circumstances.- Overrides:
calculateElementin classATransform
-
inputDimensions
public int inputDimensions()
Description copied from interface:ITransformReturns the number of dimensions required for input vectors- Specified by:
inputDimensionsin interfaceITransform- Specified by:
inputDimensionsin classATransform- Returns:
-
outputDimensions
public int outputDimensions()
Description copied from interface:ITransformReturns the number of dimensions required for output vectors- Specified by:
outputDimensionsin interfaceITransform- Specified by:
outputDimensionsin classATransform- Returns:
-
-
DMelt 3.0 © DataMelt by jWork.ORG