Click or drag to resize

Vector Operators and Type Conversions

The Vector type exposes the following members.

Operators
 NameDescription
Public operatorStatic memberAddition(Vector, Vector)Sums two vectors. Vectors must have same length.
Public operatorStatic memberAddition(Vector, Double)Add a scalar to a vector.
Public operatorStatic memberBitwiseAnd(Vector, Vector)Multiplies vector a[i] by vector b[j] and returns matrix with components a[i]*b[j]
Public operatorStatic memberDivision(Vector, Vector)Performs element-wise division of two vectors
Public operatorStatic memberDivision(Vector, Double)Divides vector by a scalar (per component)
Public operatorStatic member(Double to Vector)Performs conversion of scalar to vector with length 1
Public operatorStatic member(Double to Vector)Performs conversion of array to vector
Public operatorStatic member(Vector to Double)Performs conversion of 1d vector to
Public operatorStatic member(Vector to Double)Performs conversion of vector to array
Public operatorStatic memberMultiply(Double, Vector)Multiplies a vector by a scalar (per component)
Public operatorStatic memberMultiply(Matrix, Vector)Multiplies vector Vector by matrix
Public operatorStatic memberMultiply(Vector, Matrix)Implements multiplication of matrix by vector
Public operatorStatic memberMultiply(Vector, Vector)Performs scalar multiplication of two vectors
Public operatorStatic memberMultiply(Vector, Double)Multiplies a vector by a scalar (per component)
Public operatorStatic memberSubtraction(Vector, Vector)Substracts first vector from second. Vectors must have same length
Top
See Also