Matrix< T, MatrixFormat::CSR > random_sparse_hermitian_csr(int n, float density, int batch_size=1, unsigned seed=42, typename base_type< T >::type diagonal_boost=typename base_type< T >::type(1), bool shared_pattern=true)
Generates a batch of random sparse symmetric (real) or Hermitian (complex) n x n CSR matrices.
The batched containers: Matrix (owning), MatrixView (non-owning), KernelMatrixView (device-side),...