| Package | Description |
|---|---|
| org.jscience.mathematics.vector |
| Modifier and Type | Class and Description |
|---|---|
class |
ComplexVector
|
class |
DenseVector<F extends Field<F>>
This class represents a dense vector.
|
class |
Float64Vector
This class represents an optimized
vector implementation
for 64 bits floating point elements. |
class |
SparseVector<F extends Field<F>>
This class represents a sparse vector.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Vector<F> |
Vector.copy()
Returns a copy of this vector
allocated
by the calling thread (possibly on the stack). |
Vector<F> |
Vector.cross(Vector<F> that)
Returns the cross product of two 3-dimensional vectors.
|
abstract Vector<F> |
Matrix.getColumn(int j)
Returns the column identified by the specified index in this matrix.
|
abstract Vector<F> |
Matrix.getDiagonal()
Returns the diagonal vector.
|
abstract Vector<F> |
Matrix.getRow(int i)
Returns the row identified by the specified index in this matrix.
|
Vector<F> |
Vector.minus(Vector<F> that)
Returns the difference between this vector and the one specified.
|
abstract Vector<F> |
Vector.opposite()
Returns the negation of this vector.
|
abstract Vector<F> |
Vector.plus(Vector<F> that)
Returns the sum of this vector with the one specified.
|
Vector<F> |
Matrix.solve(Vector<F> y)
Solves this matrix for the specified vector (returns
x
such as this · x = y). |
abstract Vector<F> |
Vector.times(F k)
Returns the product of this vector with the specified coefficient.
|
abstract Vector<F> |
Matrix.times(Vector<F> v)
Returns the product of this matrix by the specified vector.
|
Vector<F> |
DenseMatrix.vectorization() |
abstract Vector<F> |
Matrix.vectorization()
Returns the vectorization of this matrix.
|
| Modifier and Type | Method and Description |
|---|---|
Vector<F> |
Vector.cross(Vector<F> that)
Returns the cross product of two 3-dimensional vectors.
|
Float64Vector |
Float64Vector.cross(Vector<Float64> that) |
boolean |
Vector.equals(Vector<F> that,
Comparator<F> cmp)
Indicates if this vector can be considered equals to the one
specified using the specified comparator when testing for
element equality.
|
ComplexVector |
ComplexVector.minus(Vector<Complex> that) |
DenseVector<F> |
DenseVector.minus(Vector<F> that) |
Vector<F> |
Vector.minus(Vector<F> that)
Returns the difference between this vector and the one specified.
|
Float64Vector |
Float64Vector.minus(Vector<Float64> that) |
ComplexVector |
ComplexVector.plus(Vector<Complex> that) |
DenseVector<F> |
DenseVector.plus(Vector<F> that) |
SparseVector<F> |
SparseVector.plus(Vector<F> that) |
abstract Vector<F> |
Vector.plus(Vector<F> that)
Returns the sum of this vector with the one specified.
|
Float64Vector |
Float64Vector.plus(Vector<Float64> that) |
Vector<F> |
Matrix.solve(Vector<F> y)
Solves this matrix for the specified vector (returns
x
such as this · x = y). |
ComplexVector |
ComplexMatrix.times(Vector<Complex> v) |
Complex |
ComplexVector.times(Vector<Complex> that) |
DenseVector<F> |
DenseMatrix.times(Vector<F> v) |
F |
DenseVector.times(Vector<F> that) |
abstract Vector<F> |
Matrix.times(Vector<F> v)
Returns the product of this matrix by the specified vector.
|
SparseVector<F> |
SparseMatrix.times(Vector<F> v) |
F |
SparseVector.times(Vector<F> that) |
abstract F |
Vector.times(Vector<F> that)
Returns the dot product of this vector with the one specified.
|
Float64Vector |
Float64Matrix.times(Vector<Float64> v) |
Float64 |
Float64Vector.times(Vector<Float64> that) |
static ComplexVector |
ComplexVector.valueOf(Vector<Complex> that)
Returns a
ComplexVector instance equivalent to the
specified vector. |
static <F extends Field<F>> |
DenseVector.valueOf(Vector<F> that)
Returns a dense vector equivalent to the specified vector.
|
static <F extends Field<F>> |
SparseMatrix.valueOf(Vector<F> diagonal,
F zero)
Returns the sparse square matrix having the specified diagonal
vector.
|
static <F extends Field<F>> |
SparseVector.valueOf(Vector<F> that,
F zero)
Returns a sparse vector equivalent to the specified vector but with
the zero elements removed removed using a default object equality
comparator.
|
static <F extends Field<F>> |
SparseVector.valueOf(Vector<F> that,
F zero,
javolution.util.FastComparator<? super F> comparator)
Returns a sparse vector equivalent to the specified vector but with
the zero elements removed using the specified object equality comparator.
|
static Float64Vector |
Float64Vector.valueOf(Vector<Float64> that)
Returns a
Float64Vector instance equivalent to the
specified vector. |