MatrixSampler# class sdm.prior.MatrixSampler# Bases: ABC Base class for sampling random matrices. abstractmethod sample(size: Size | tuple[int, ...], dtype: dtype, generator: Generator | None = None) → Tensor# Sample random matrices. Parameters: size (Size | tuple[int, ...]) – Output shape [..., M, N] with M rows and N columns per matrix. dtype (dtype) – Output dtype. generator (Generator | None) – Pseudorandom generator. Returns: Random matrices with shape size. Return type: Tensor