Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function choleskyDiagIndices

    • Packed-vector positions of the diagonal elements of a d×d lower-triangular matrix, in row-major packing [L00, L10, L11, L20, L21, L22, …].

      The diagonal element (i, i) lives at packed position (i+1)*(i+2)/2 - 1. Mirrors luxar.gsplats.utils.trils.diag_indices (Python). Used to recombine the v3.1 split Cholesky arrays (cholesky_factors_diag + cholesky_factors_offdiag) into the packed form the GPU geometry expects.

      Parameters

      • ndim: number

        Number of dimensions (d)

      Returns number[]

      Diagonal positions, e.g. d=3 → [0, 2, 5]