Package jscl.math
Class JSCLVector
- java.lang.Object
-
- jscl.math.Generic
-
- jscl.math.JSCLVector
-
- All Implemented Interfaces:
java.lang.Comparable,jscl.editor.rendering.MathObject,Arithmetic
public class JSCLVector extends Generic
-
-
Constructor Summary
Constructors Constructor Description JSCLVector(java.lang.String name, int prime, int n)JSCLVector(Generic[] element)
-
Method Summary
-
Methods inherited from class jscl.math.Generic
abs, add, booleanValue, compareTo, divide, divideAndRemainder, equals, gcdAndNormalize, inverse, isIdentity, isOne, isZero, multiple, multiply, normalize, pow, pow, remainder, scm, subtract, vectorValue
-
-
-
-
Field Detail
-
element
protected final Generic[] element
-
n
protected final int n
-
-
Constructor Detail
-
JSCLVector
public JSCLVector(java.lang.String name, int prime, int n)
-
JSCLVector
public JSCLVector(Generic[] element)
-
-
Method Detail
-
elements
public Generic[] elements()
-
add
public JSCLVector add(JSCLVector vector)
-
subtract
public JSCLVector subtract(JSCLVector vector)
-
antiderivative
public Generic antiderivative(Variable variable) throws NotIntegrableException
- Specified by:
antiderivativein classGeneric- Throws:
NotIntegrableException
-
derivative
public Generic derivative(Variable variable)
- Specified by:
derivativein classGeneric
-
substitute
public Generic substitute(Variable variable, Generic generic)
- Specified by:
substitutein classGeneric
-
elementary
public Generic elementary()
- Specified by:
elementaryin classGeneric
-
productValue
public Generic[] productValue() throws NotProductException
- Specified by:
productValuein classGeneric- Throws:
NotProductException
-
powerValue
public Power powerValue() throws NotPowerException
- Specified by:
powerValuein classGeneric- Throws:
NotPowerException
-
expressionValue
public Expression expressionValue() throws NotExpressionException
- Specified by:
expressionValuein classGeneric- Throws:
NotExpressionException
-
integerValue
public JSCLInteger integerValue() throws NotIntegerException
- Specified by:
integerValuein classGeneric- Throws:
NotIntegerException
-
variableValue
public Variable variableValue() throws NotVariableException
- Specified by:
variableValuein classGeneric- Throws:
NotVariableException
-
isPolynomial
public boolean isPolynomial(Variable variable)
- Specified by:
isPolynomialin classGeneric
-
isConstant
public boolean isConstant(Variable variable)
- Specified by:
isConstantin classGeneric
-
magnitude2
public Generic magnitude2()
-
scalarProduct
public Generic scalarProduct(JSCLVector vector)
-
vectorProduct
public JSCLVector vectorProduct(JSCLVector vector)
-
complexProduct
public JSCLVector complexProduct(JSCLVector vector)
-
quaternionProduct
public JSCLVector quaternionProduct(JSCLVector vector)
-
geometricProduct
public JSCLVector geometricProduct(JSCLVector vector, int[] algebra)
-
curl
public JSCLVector curl(Variable[] variable)
-
conjugate
public Generic conjugate()
-
compareTo
public int compareTo(JSCLVector vector)
-
unity
public static JSCLVector unity(int dimension)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toMathML
public java.lang.String toMathML()
-
newinstance
protected Generic newinstance()
-
-