Class GenVector<C extends RingElem<C>>
java.lang.Object
edu.jas.vector.GenVector<C>
- All Implemented Interfaces:
AbelianGroupElem<GenVector<C>>, Element<GenVector<C>>, ModulElem<GenVector<C>, C>, Serializable, Comparable<GenVector<C>>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenVector(GenVectorModul<C> m) Constructor for zero GenVector.GenVector(GenVectorModul<C> m, C[] v) Constructor for GenVector.GenVector(GenVectorModul<C> m, List<C> v) Constructor for GenVector. -
Method Summary
Modifier and TypeMethodDescriptionabs()Absolute value of this vector.intcompareTo, lexicographical comparison.copy()clone method.booleanequals method.factory()Get the corresponding element factory.get(int i) get element.inthashCode()Hash code for this GenVector.booleanisZERO()test if this is equal to a zero vector.leftLinearCombination(C s, C t, GenVector<C> b) left linear combination of this vector with scalar multiple of other vector.Left product of this vector with scalar.linearCombination(C t, GenVector<C> b) Left linear combination of this vector with scalar multiple of other vector.linearCombination(C s, GenVector<C> b, C t) Linear combination of this vector with scalar multiple of other vector.linearCombination(GenVector<C> b, C t) Linear combination of this vector with scalar multiple of other vector.Product of this vector with scalar.negate()Negative of this vector.rightScalarProduct(List<GenVector<C>> B) right scalar / dot product of this vector with list of other vectors.scalarMultiply(C s) Product of this vector with scalar.scalarProduct(GenVector<C> b) scalar / dot product of this vector with other vector.scalarProduct(List<GenVector<C>> B) scalar / dot product of this vector with list of other vectors.set element, mutate this.intsignum()sign of vector.Difference of vectors.Sum of vectors.toScript()Get a scripting compatible string representation.Get a scripting compatible string representation of the factory.toString()Get the String representation as RingElem.
-
Field Details
-
logger
private static final org.apache.logging.log4j.Logger logger -
modul
-
val
-
-
Constructor Details
-
GenVector
Constructor for zero GenVector. -
GenVector
Constructor for GenVector. -
GenVector
Constructor for GenVector.
-
-
Method Details
-
toString
-
toScript
-
toScriptFactory
-
factory
-
copy
-
isZERO
public boolean isZERO()test if this is equal to a zero vector.- Specified by:
isZEROin interfaceAbelianGroupElem<C extends RingElem<C>>- Returns:
- true if this is 0, else false.
-
equals
-
hashCode
-
compareTo
compareTo, lexicographical comparison. -
get
-
setMutate
-
signum
public int signum()sign of vector.- Specified by:
signumin interfaceAbelianGroupElem<C extends RingElem<C>>- Returns:
- 1 if (this < 0), 0 if (this == 0) or -1 if (this > 0).
-
sum
-
subtract
-
negate
-
abs
-
multiply
-
scalarMultiply
-
leftScalarMultiply
-
linearCombination
Linear combination of this vector with scalar multiple of other vector. -
linearCombination
Linear combination of this vector with scalar multiple of other vector. -
linearCombination
-
leftLinearCombination
-
scalarProduct
-
scalarProduct
-
rightScalarProduct
-