Package edu.cmu.tetrad.util
Class Vector
java.lang.Object
edu.cmu.tetrad.util.Vector
- All Implemented Interfaces:
TetradSerializable
,Serializable
Vector wrapping matrix library.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
assign
(double value) void
copy()
diag()
double
double
dotProduct
(Vector v2) boolean
double
get
(int i) like()
scalarMult
(double scalar) static Vector
Generates a simple exemplar of this class to test serialization.void
set
(int j, double v) int
size()
double[]
toArray()
toString()
viewSelection
(int[] selection)
-
Constructor Details
-
Vector
public Vector(double[] data) -
Vector
public Vector(int size)
-
-
Method Details
-
serializableInstance
Generates a simple exemplar of this class to test serialization. -
assign
public void assign(double value) -
assign
-
copy
-
diag
-
dotProduct
-
get
public double get(int i) -
like
-
minus
-
plus
-
scalarMult
-
set
public void set(int j, double v) -
size
public int size() -
toArray
public double[] toArray() -
toString
-
viewSelection
-
equals
-
dot
-