5 @brief SpM example to generate a sparse matrix from the spm drivers
7 @copyright 2017-2024 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
8 Univ. Bordeaux. All rights reserved.
12 @author Mathieu Faverge
17 @ingroup examples_python
28tmp = np.eye(2).dot(np.ones(2))
31A = spm.spmatrix( driver=spm.driver.Laplacian, filename=
"10:10:10:2.:1." )
44x0, b = A.genRHS( spm.rhstype.RndX, nrhs,
True )
47A.checkAxb(
None, b, x0 )