Package io.deephaven.numerics.suanshu
Class SuanShuIntegration.AbstractVector
java.lang.Object
io.deephaven.numerics.suanshu.SuanShuIntegration.AbstractVector
- All Implemented Interfaces:
com.numericalmethod.suanshu.DeepCopyable
,com.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.vector.doubles.Vector>
,com.numericalmethod.suanshu.mathstructure.BanachSpace<com.numericalmethod.suanshu.vector.doubles.Vector,
,com.numericalmethod.suanshu.number.Real> com.numericalmethod.suanshu.mathstructure.HilbertSpace<com.numericalmethod.suanshu.vector.doubles.Vector,
,com.numericalmethod.suanshu.number.Real> com.numericalmethod.suanshu.mathstructure.VectorSpace<com.numericalmethod.suanshu.vector.doubles.Vector,
,com.numericalmethod.suanshu.number.Real> com.numericalmethod.suanshu.vector.doubles.Vector
,Serializable
- Enclosing class:
- SuanShuIntegration
public abstract static class SuanShuIntegration.AbstractVector
extends Object
implements com.numericalmethod.suanshu.vector.doubles.Vector, Serializable
The abstract implementation of
Vector
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.numericalmethod.suanshu.vector.doubles.Vector
add
(double v) com.numericalmethod.suanshu.vector.doubles.Vector
add
(com.numericalmethod.suanshu.vector.doubles.Vector vector) double
angle
(com.numericalmethod.suanshu.vector.doubles.Vector vector) com.numericalmethod.suanshu.vector.doubles.Vector
deepCopy()
com.numericalmethod.suanshu.vector.doubles.Vector
divide
(com.numericalmethod.suanshu.vector.doubles.Vector vector) abstract double
get
(int i) Gets the ith indexed (1-based) value from vector.double
innerProduct
(com.numericalmethod.suanshu.vector.doubles.Vector vector) com.numericalmethod.suanshu.vector.doubles.Vector
minus
(double v) com.numericalmethod.suanshu.vector.doubles.Vector
minus
(com.numericalmethod.suanshu.vector.doubles.Vector vector) com.numericalmethod.suanshu.vector.doubles.Vector
multiply
(com.numericalmethod.suanshu.vector.doubles.Vector vector) double
norm()
double
norm
(int i) com.numericalmethod.suanshu.vector.doubles.Vector
opposite()
com.numericalmethod.suanshu.vector.doubles.Vector
pow
(double v) com.numericalmethod.suanshu.vector.doubles.Vector
scaled
(double v) com.numericalmethod.suanshu.vector.doubles.Vector
scaled
(com.numericalmethod.suanshu.number.Real real) void
set
(int index, double value) show()
Returns theString
representation of wholeVector
double[]
toArray()
toString()
Returns the compactString
representation ofVector
.com.numericalmethod.suanshu.vector.doubles.Vector
ZERO()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.numericalmethod.suanshu.vector.doubles.Vector
size
-
Constructor Details
-
AbstractVector
public AbstractVector()
-
-
Method Details
-
get
public abstract double get(int i) Gets the ith indexed (1-based) value from vector.- Specified by:
get
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
- Parameters:
i
- 1-based index- Returns:
- ith indexed (1-based) value
-
set
public void set(int index, double value) - Specified by:
set
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
add
public com.numericalmethod.suanshu.vector.doubles.Vector add(com.numericalmethod.suanshu.vector.doubles.Vector vector) - Specified by:
add
in interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.vector.doubles.Vector>
- Specified by:
add
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
minus
public com.numericalmethod.suanshu.vector.doubles.Vector minus(com.numericalmethod.suanshu.vector.doubles.Vector vector) - Specified by:
minus
in interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.vector.doubles.Vector>
- Specified by:
minus
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
multiply
public com.numericalmethod.suanshu.vector.doubles.Vector multiply(com.numericalmethod.suanshu.vector.doubles.Vector vector) - Specified by:
multiply
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
divide
public com.numericalmethod.suanshu.vector.doubles.Vector divide(com.numericalmethod.suanshu.vector.doubles.Vector vector) - Specified by:
divide
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
add
public com.numericalmethod.suanshu.vector.doubles.Vector add(double v) - Specified by:
add
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
minus
public com.numericalmethod.suanshu.vector.doubles.Vector minus(double v) - Specified by:
minus
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
innerProduct
public double innerProduct(com.numericalmethod.suanshu.vector.doubles.Vector vector) - Specified by:
innerProduct
in interfacecom.numericalmethod.suanshu.mathstructure.HilbertSpace<com.numericalmethod.suanshu.vector.doubles.Vector,
com.numericalmethod.suanshu.number.Real> - Specified by:
innerProduct
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
pow
public com.numericalmethod.suanshu.vector.doubles.Vector pow(double v) - Specified by:
pow
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
scaled
public com.numericalmethod.suanshu.vector.doubles.Vector scaled(double v) - Specified by:
scaled
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
scaled
public com.numericalmethod.suanshu.vector.doubles.Vector scaled(com.numericalmethod.suanshu.number.Real real) - Specified by:
scaled
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
- Specified by:
scaled
in interfacecom.numericalmethod.suanshu.mathstructure.VectorSpace<com.numericalmethod.suanshu.vector.doubles.Vector,
com.numericalmethod.suanshu.number.Real>
-
norm
public double norm()- Specified by:
norm
in interfacecom.numericalmethod.suanshu.mathstructure.BanachSpace<com.numericalmethod.suanshu.vector.doubles.Vector,
com.numericalmethod.suanshu.number.Real> - Specified by:
norm
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
norm
public double norm(int i) - Specified by:
norm
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
angle
public double angle(com.numericalmethod.suanshu.vector.doubles.Vector vector) - Specified by:
angle
in interfacecom.numericalmethod.suanshu.mathstructure.HilbertSpace<com.numericalmethod.suanshu.vector.doubles.Vector,
com.numericalmethod.suanshu.number.Real> - Specified by:
angle
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
opposite
public com.numericalmethod.suanshu.vector.doubles.Vector opposite()- Specified by:
opposite
in interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.vector.doubles.Vector>
- Specified by:
opposite
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
ZERO
public com.numericalmethod.suanshu.vector.doubles.Vector ZERO()- Specified by:
ZERO
in interfacecom.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.vector.doubles.Vector>
- Specified by:
ZERO
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
toArray
public double[] toArray()- Specified by:
toArray
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
deepCopy
public com.numericalmethod.suanshu.vector.doubles.Vector deepCopy()- Specified by:
deepCopy
in interfacecom.numericalmethod.suanshu.DeepCopyable
- Specified by:
deepCopy
in interfacecom.numericalmethod.suanshu.vector.doubles.Vector
-
toString
Returns the compactString
representation ofVector
. If you want to have String representation of the wholeVector
, please useshow()
method. -
show
Returns theString
representation of wholeVector
- Returns:
- String representation of
Vector
-