Examples

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