@awatters_flatiron/tsvector - v1.0.1
    Preparing search index...

    Function Mshape

    • Gets the shape (dimensions) of a matrix as [rows, columns]

      Parameters

      • M: Matrix

        The matrix to measure

      • check: boolean = false

        If true, validates that all rows have the same number of columns (default: false)

      Returns [number, number]

      A tuple containing [number of rows, number of columns]

      Error if check is true and rows have inconsistent lengths