Package edu.wpi.first.math
Class Vector<R extends Num>
- java.lang.Object
-
- edu.wpi.first.math.Matrix<R,N1>
-
- edu.wpi.first.math.Vector<R>
-
-
Constructor Summary
Constructors Constructor Description Vector(Matrix<R,N1> other)
Constructs a new vector with the storage of the supplied matrix.Vector(Nat<R> rows)
Constructs an empty zero vector of the given dimensions.Vector(org.ejml.simple.SimpleMatrix storage)
Constructs a newVector
with the given storage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector<R>
div(double value)
Divides all elements of this matrix by the given value.Vector<R>
div(int value)
Divides all elements of this matrix by the given value.Vector<R>
times(double value)
Multiplies all the elements of this matrix by the given scalar.-
Methods inherited from class edu.wpi.first.math.Matrix
assignBlock, block, block, changeBoundsUnchecked, copy, det, diag, elementPower, elementPower, elementSum, elementTimes, equals, exp, extractColumnVector, extractFrom, extractRowVector, eye, eye, fill, get, getData, getNumCols, getNumRows, getStorage, hashCode, inv, isEqual, isIdentical, lltDecompose, mat, max, maxAbs, mean, minInternal, minus, minus, normF, normIndP1, plus, plus, pow, set, setColumn, setRow, solve, times, toString, trace, transpose
-
-
-
-
Constructor Detail
-
Vector
public Vector(Nat<R> rows)
Constructs an empty zero vector of the given dimensions.- Parameters:
rows
- The number of rows of the vector.
-
Vector
public Vector(org.ejml.simple.SimpleMatrix storage)
Constructs a newVector
with the given storage. Caller should make sure that the provided generic bounds match the shape of the providedVector
.NOTE:It is not recommended to use this constructor unless the
SimpleMatrix
API is absolutely necessary due to the desired function not being accessible through theVector
wrapper.- Parameters:
storage
- TheSimpleMatrix
to back this vector.
-
-