Matrix🔗

class Matrix(rows, columns, bufferOrType, byteOffset)🔗

A matrix. Corresponds to the va_matrix C type.

Arguments
  • rows (number) –

  • columns (number) –

  • bufferOrType (number|ArrayBuffer|Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array|Float32Array|Float64Array|DataView) –

  • byteOffset (number) –

Matrix.columns🔗

type: number

Matrix.data🔗

type: TypedArray

Matrix.dimensions🔗

type: Uint32Array

Matrix.info🔗

type: MdArrayInfo

Matrix.rows🔗

type: number

Matrix.typeName🔗

type: string

Matrix.Type🔗

type: <TODO: reflection>

Matrix.elementCount()🔗

Returns the total number of elements in the array.

Returns

number

Matrix.entry(row, column)🔗
Arguments
  • row (number) –

  • column (number) –

Returns

number

Matrix.equals(other)🔗
Arguments
  • other (any) –

Returns

boolean

Matrix.forEach(callback)🔗
Arguments
  • reflection> callback (<TODO:) –

Matrix.setEntry(row, column, value)🔗
Arguments
  • row (number) –

  • column (number) –

  • value (number) –

Matrix.toIndex(indices)🔗

Flattens a multi-dimensional array index to one-dimensional index for array look-up.

Arguments
  • indices (NumericArray) –

Returns

number

Matrix.transform(callback)🔗
Arguments
  • reflection> callback (<TODO:) –

Matrix.write(stream)🔗
Arguments
  • stream (default) –

Matrix.read(stream)🔗
Arguments
  • stream (default) –

Returns

Matrix