MParam.dense#

MParam.dense()[source]#

Return the parameter value as a dense numpy.ndarray.

For sparse-stored MParams this materializes the full dense matrix and squeezes a single-row result down to a 1D array (preserving the historical 1-row shape contract). For dense storage this is a no-op pass-through.