吕超 <[email protected]> writes: > Dear all, > > Now, I need create a big matrix, but only some rows have values, > other rows are all 0. The spy of the matrix looks like the > figure below.
You can create a matrix like this, but the default distribution is for balancing rows. Pass local sizes to MatSetSizes if you want something different. You'll get better performance if you scatter to the reduced space, then scatter back). > Can you tell me how to create this kind of matrix? > > Thank you for your help > > LV Chao > > 2014/11/7
signature.asc
Description: PGP signature
