Examples

ex15f.F90:
ex17f.F90:
ex17.c: Example of using graph partitioning with a matrix in which some procs have empty ownership
ex3.c: Illustration of MatIS using a 1D Laplacian assembly
ex9.c: Tests MatCreateComposite()
ex1.c: Reads a PETSc matrix and vector from a file and reorders it.
ex7.c: Example use of PetscInfo() as a configurable informative logging or warning tool
ex19.c: Test MatCreateDenseFromVecType()
ex18cu.cu:
ex15.c: Example of using graph partitioning to partition a graph
ex11.c: Tests MatMeshToDual()
ex18.h:
ex20f.F90:
ex16.c: Reads a matrix from PETSc binary file. Use for view or investigating matrix data structure.
ex6f.F90:
ex8.c: Shows how to add a new MatOperation to AIJ MatType
ex18.c: Demonstrates the use of the COO interface to PETSc matrices for finite element computations
ex12.c: Reads a PETSc matrix and vector from a file; expands the matrix with the vector
ex2.c: testing SeqDense matrices with an LDA (leading dimension of the user-allocated array) larger than M.
ex18kok.kokkos.cxx:
ex4.c:
ex10.c: Reads a PETSc matrix and computes the 2 norm of the columns
ex4f.F90: