rhodonite
    Preparing search index...

    Interface IMatrix

    Base interface for immutable matrix operations. Provides read-only access to matrix data and basic mathematical operations.

    interface IMatrix {
        _v: Float32Array;
        className: string;
        isIdentityMatrixClass: boolean;
        at(row_i: number, column_i: number): number;
        determinant(): number;
        flattenAsArray(): number[];
        isDummy(): boolean;
        isTheSourceSame(arrayBuffer: ArrayBuffer): boolean;
        toString(): string;
        toStringApproximately(): string;
        v(i: number): number;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    _v: Float32Array

    Internal typed array storing matrix data in column-major order

    className: string

    Returns the class name of the matrix implementation

    isIdentityMatrixClass: boolean

    Indicates if this matrix is an identity matrix class

    Methods

    • Gets the value at the specified row and column.

      Parameters

      • row_i: number

        Row index (0-based)

      • column_i: number

        Column index (0-based)

      Returns number

      Value at the specified position

    • Flattens the matrix into a plain JavaScript array.

      Returns number[]

      Array containing all matrix elements

    • Checks if this is a dummy/placeholder matrix.

      Returns boolean

      True if this is a dummy matrix

    • Checks if the internal array buffer is the same as the provided one.

      Parameters

      • arrayBuffer: ArrayBuffer

        Array buffer to compare against

      Returns boolean

      True if the source is the same

    • Converts the matrix to a string representation.

      Returns string

      String representation of the matrix

    • Converts the matrix to an approximate string representation.

      Returns string

      Approximate string representation with rounded values

    • Gets the value at the specified linear index.

      Parameters

      • i: number

        Linear index in the internal array

      Returns number

      Value at the specified index