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

    Function listAsM

    • Reshapes a one-dimensional vector into a matrix

      Parameters

      • M: Vector

        The vector to reshape

      • rows: number

        The number of rows in the resulting matrix

      • cols: number

        The number of columns in the resulting matrix

      Returns Matrix

      A new rows×cols matrix

      Error if the vector length doesn't match rows × cols