Constructs a new BLAS Vector object.
Vector
Algebra BLAS data class
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| Number | readonly | Get number of columns in this data object. | |
| Number | readonly | Get the length of the vector. | |
| Number | readonly | Get number of rows in this data object. |
Methods
Element-wise absolute value; returns a new vector or matrix.
Element-wise add another vector or matrix of the same shape; returns a new vector or matrix.
Get the linear (column-major) index of the maximum element.
Get the value at the given row index.
Element-wise divide by another vector or matrix of the same shape; returns a new vector or matrix.
Compute the dot product of this vector with another.
Get the maximum element value in this vector or matrix.
Element-wise maximum of each element and the given scalar; returns a new vector or matrix.
Element-wise multiply by another vector or matrix of the same shape; returns a new vector or matrix.
Compute the norm of this vector or matrix.
Element-wise power; returns a new vector or matrix.
Multiply each element by the given scalar; returns a new vector or matrix.
Compute the squared L2 norm of this vector or matrix.
Element-wise subtract another vector or matrix of the same shape; returns a new vector or matrix.
Compute the sum of all elements in this vector or matrix.
Parameter of 1
Method parameters that accept a Vector.
Return 1
Methods that return a Vector.