Construct a vector and assign values from vector u.
Construct a vector and assign values from vector u.
the other vector
Construct a vector from an array of values.
Construct a vector from an array of values.
the array of values
the dimension/size of the vector
the 1D array used to store vector elements
Multiply this 'row' vector by matrix m.
Multiply this 'row' vector by matrix m. FIX: not yet implemented
the matrix to multiply by
Multiply this vector by scalar s.
Multiply this vector by scalar s.
the scalar to multiply by
Multiply this vector by scalar s.
Multiply this vector by scalar s.
the scalar to multiply by
Multiply this vector by vector b.
Multiply this vector by vector b.
the vector to multiply by
Multiply in-place this vector and scalar s.
Multiply in-place this vector and scalar s.
the scalar to add
Multiply in-place this vector and scalar s.
Multiply in-place this vector and scalar s.
the scalar to add
Multiply in-place this vector and vector b.
Multiply in-place this vector and vector b.
the vector to add
Add this vector and scalar s._1 only at position s._2.
Add this vector and scalar s._1 only at position s._2.
the (scalar, position) to add
Add this vector and scalar s.
Add this vector and scalar s.
the scalar to add
Add this vector and scalar s.
Add this vector and scalar s.
the scalar to add
Add this vector and vector b.
Add this vector and vector b.
the vector to add
Concatenate this vector and scalar b.
Concatenate this vector and scalar b.
the scalar to be concatenated
Concatenate this vector and scalar b.
Concatenate this vector and scalar b.
the scalar to be concatenated
Concatenate this vector and vector b.
Concatenate this vector and vector b.
the vector to be concatenated
Add in-place this vector and scalar s.
Add in-place this vector and scalar s.
the scalar to add
Add in-place this vector and scalar s.
Add in-place this vector and scalar s.
the scalar to add
Add in-place this vector and vector b.
Add in-place this vector and vector b.
the vector to add
From this vector subtract scalar s._1 only at position s._2.
From this vector subtract scalar s._1 only at position s._2.
the (scalar, position) to subtract
From this vector subtract scalar s.
From this vector subtract scalar s.
the scalar to subtract
From this vector subtract scalar s.
From this vector subtract scalar s.
the scalar to subtract
From this vector subtract vector b.
From this vector subtract vector b.
the vector to subtract
From this vector subtract in-place scalar s.
From this vector subtract in-place scalar s.
the scalar to add
From this vector subtract in-place scalar s.
From this vector subtract in-place scalar s.
the scalar to add
From this vector subtract in-place vector b.
From this vector subtract in-place vector b.
the vector to add
Divide this vector by scalar s.
Divide this vector by scalar s.
the scalar to divide by
Divide this vector by scalar s.
Divide this vector by scalar s.
the scalar to divide by
Divide this vector by vector b (element-by-element).
Divide this vector by vector b (element-by-element).
the vector to divide by
Divide in-place this vector and scalar s.
Divide in-place this vector and scalar s.
the scalar to add
Divide in-place this vector and scalar s.
Divide in-place this vector and scalar s.
the scalar to add
Divide in-place this vector and vector b.
Divide in-place this vector and vector b.
the vector to add
Create a vector of the form (0, ...
Create a vector of the form (0, ... -1, ... 0) where the -1 is at position j.
the position to place the 1
the size of the vector (upper bound = size - 1)
Return the vector is absolute values.
Get this vector's entire array.
Get this vector's elements within the given range (vector slicing).
Get this vector's elements within the given range (vector slicing).
the given range
Get this vector's element at the i-th index position.
Get this vector's element at the i-th index position.
the given index
Find the argument maximum of this vector (index of maximum element).
Find the argument maximum of this vector (index of maximum element).
the ending index (exclusive) for the search
Return the argument maximum of this vector (-1 if its not positive).
Return the argument maximum of this vector (-1 if its not positive).
the ending index (exclusive) for the search
Find the argument minimum of this vector (index of minimum element).
Find the argument minimum of this vector (index of minimum element).
the ending index (exclusive) for the search
Return the argument minimum of this vector (-1 if its not negative).
Return the argument minimum of this vector (-1 if its not negative).
the ending index (exclusive) for the search
Determine whether x is contained in this vector.
Determine whether x is contained in this vector.
the element to be checked
Count the number of strictly negative entries in this vector.
Count the number of strictly positive entries in this vector.
Cumulate the values of this vector from left to right (e.g., create a cdf from a pmf).
Cumulate the values of this vector from left to right (e.g., create a cdf from a pmf). Example: (4, 2, 3, 1) --> (4, 6, 9, 10)
the dimension/size of the vector
Compute the dot product (or inner product) of this vector with vector b.
Compute the dot product (or inner product) of this vector with vector b.
the other vector
Override equals to determine whether vector this equals vector b.
Override equals to determine whether vector this equals vector b.
the vector to compare with this
Expand the size (dim) of this vector by 'more' elements.
Return the index of the first negative element in this vector (-1 otherwise).
Return the index of the first negative element in this vector (-1 otherwise).
the ending index (exclusive) for the search
Return the index of the first positive element in this vector (-1 otherwise).
Return the index of the first positive element in this vector (-1 otherwise).
the ending index (exclusive) for the search
Show the flaw by printing the error message.
Show the flaw by printing the error message.
the method where the error occurred
the error message
Iterate over the vector element by element.
Iterate over the vector element by element.
the function to apply
Must also override hashCode to be be compatible with equals.
Must also override hashCode to be be compatible with equals.
Check whether this vector is nonnegative (has no negative elements).
Find the element with the greatest magnitude in this vector.
Map the elements of this vector by applying the mapping function f.
Map the elements of this vector by applying the mapping function f.
the function to apply
Take the maximum of this vector with vector b (element-by element).
Take the maximum of this vector with vector b (element-by element).
the other vector
Find the maximum element in this vector.
Find the maximum element in this vector.
the ending index (exclusive) for the search
Take the minimum of this vector with vector b (element-by element).
Take the minimum of this vector with vector b (element-by element).
the other vector
Find the minimum element in this vector.
Find the minimum element in this vector.
the ending index (exclusive) for the search
Compute the Euclidean norm (2-norm) of this vector.
Compute the Manhattan norm (1-norm) of this vector.
Compute the Euclidean norm (2-norm) squared of this vector.
Normalize this vector so that it sums to one (like a probability vector).
Normalize this vector to have a maximum of one.
Normalize this vector so its length is one (unit vector).
Create a vector of the form (0, ...
Create a vector of the form (0, ... 1, ... 0) where the 1 is at position j.
the position to place the 1
the size of the vector (upper bound = size - 1)
Check whether the other vector is at least as long as this vector.
Check whether the other vector is at least as long as this vector.
the other vector
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Select a subset of elements of this vector corresponding to a index/basis.
Select a subset of elements of this vector corresponding to a index/basis.
the set of index positions (e.g., 0, 2, 5)
Set each value in this vector to x.
Set each value in this vector to x.
the value to be assigned
Set the values in this vector to the values in array u.
Set the values in this vector to the values in array u.
the array of values to be assigned
Slice this vector from to end.
Slice this vector from to end.
the start of the slice (included)
the end of the slice (excluded)
Sort this vector in-place in non-decreasing order.
Square each element of this vector.
Sum the elements of this vector.
Sum the elements of this vector skipping the i-th element.
Sum the elements of this vector skipping the i-th element.
the index of the element to skip
Sum the positive (> 0) elements of this vector.
Convert this rational vector to a String.
Convert this rational vector to a String.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Compare this vector with vector b.
Return the negative of this vector (unary minus).
Set this vector's elements over the given range (vector slicing).
Set this vector's elements over the given range (vector slicing).
the given range
the vector to assign
Set this vector's elements over the given range (vector slicing).
Set this vector's elements over the given range (vector slicing).
the given range
the value to assign
Set this vector's element at the i-th index position.
Set this vector's element at the i-th index position.
the given index
the value to assign
the 1D array used to store vector elements
the 1D array used to store vector elements
Return the vector containing each element of this vector raised to the s-th power.
Return the vector containing each element of this vector raised to the s-th power.
the scalar exponent
Return the vector containing each element of this vector raised to the s-th power.
Return the vector containing each element of this vector raised to the s-th power.
the scalar exponent
Raise each element of this vector to the s-th power.
Raise each element of this vector to the s-th power.
the scalar exponent
Raise each element of this vector to the s-th power.
Raise each element of this vector to the s-th power.
the scalar exponent
The
VectorR
class stores and operates on Numeric Vectors of base type Rational. It follows the framework of VectorN [T] and is provided for performance.