Media Encoder2027
Object

Vector

Algebra BLAS data class

Properties

NameType AccessDescription
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

→ Vector

Constructs a new BLAS Vector object.

rows Number
data Varies
→ Object

Element-wise absolute value; returns a new vector or matrix.

→ Object

Element-wise add another vector or matrix of the same shape; returns a new vector or matrix.

other Object
→ Number

Get the linear (column-major) index of the maximum element.

→ Number

Get the value at the given row index.

rowIdx Number
→ Object

Element-wise divide by another vector or matrix of the same shape; returns a new vector or matrix.

other Object
→ Number

Compute the dot product of this vector with another.

other Object
→ Number

Get the maximum element value in this vector or matrix.

→ Object

Element-wise maximum of each element and the given scalar; returns a new vector or matrix.

scalar Number
→ Object

Element-wise multiply by another vector or matrix of the same shape; returns a new vector or matrix.

other Object
→ Number

Compute the norm of this vector or matrix.

→ Object

Element-wise power; returns a new vector or matrix.

exponent Number
→ Object

Multiply each element by the given scalar; returns a new vector or matrix.

factor Number
→ Number

Compute the squared L2 norm of this vector or matrix.

→ Object

Element-wise subtract another vector or matrix of the same shape; returns a new vector or matrix.

other Object
→ Number

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.