Interface VectorI
- All Known Implementing Classes:
ComplexVector,DoubleVector,GenericVector,ObjectVector,RationalMatrixFactory.RationalVector
Defines the basic interface implemented by all matrix types.
- Since:
- Jep 3.5 / Extensions 2.0
- Author:
- Richard Morris
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getEle
Gets the i-th element of a vector- Parameters:
i- index (starts from 0)- Returns:
- the i-th element
- Throws:
EvaluationException
-
setEle
Sets an element of a vector.- Parameters:
i-val-- Throws:
EvaluationException
-
getNEles
int getNEles()Gets the number of elements of a vector- Returns:
- the number of elements
-
getDimensions
Dimensions getDimensions()Gets the dimensions of the Vector or Matrix- Returns:
- the dimensions
-
toArray
- Throws:
EvaluationException
-
stream
Converts the vector to a stream. Uses @link{Stream#builder} to create a stream.- Returns:
- a stream of the elements
-
iterator
-