Package org.scictrl.mp.orbitcorrect.math
Class DoubleVector
java.lang.Object
org.scictrl.mp.orbitcorrect.math.DoubleMatrix
org.scictrl.mp.orbitcorrect.math.DoubleVector
- All Implemented Interfaces:
Cloneable
DoubleVector class.
- Author:
- igor@scictrl.com
-
Field Summary
Fields inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
columns, matrix, rows
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canJoin
(DoubleMatrix matrix) Test if can be joined with this matrix.double
get
(int r) Returns value from matrix at (row,column) position.multiplayVector
(DoubleMatrix matrix) Multipliesmatrix
from right with this matrix and returns result as new matrixvoid
set
(int r, double value) Returns value from matrix at (row,column) position.Methods inherited from class org.scictrl.mp.orbitcorrect.math.DoubleMatrix
canMulitplay, clone, columns, dimensionEquals, get, identity, join, multiplay, rows, toString
-
Constructor Details
-
DoubleVector
public DoubleVector(int dimension) DoubleVector constructor comment.- Parameters:
dimension
- int
-
-
Method Details
-
canJoin
Test if can be joined with this matrix. Test if can be joined with this matrix.- Overrides:
canJoin
in classDoubleMatrix
- Parameters:
matrix
- DoubleMatrix- Returns:
- boolean
-
get
public double get(int r) Returns value from matrix at (row,column) position.- Parameters:
r
- int row- Returns:
- double value
-
multiplayVector
Multipliesmatrix
from right with this matrix and returns result as new matrix- Parameters:
matrix
- DoubleMatrix- Returns:
- DoubleMatrix result=
matrix
times this matrix
-
set
public void set(int r, double value) Returns value from matrix at (row,column) position.- Parameters:
r
- int rowvalue
- a double
-