Examples
benchmark_veccreate.c: Benchmark VecCreate() for GPU vectors.
ex1.c: Tests repeated VecSetType().
ex10.c: Scatters from a parallel vector to a sequential vector.
ex100.cu: Tests I/O of vectors for different data formats (binary,HDF5)
ex11.c: Scatters from a parallel vector to a sequential vector.
ex12.c: Scatters from a sequential vector to a parallel vector.
ex13.c: Demonstrates scattering with the indices specified by a process that is not sender or receiver.
ex14.c: Scatters from a sequential vector to a parallel vector.
ex15.c: Tests VecSetValuesBlocked() on sequential vectors.
ex16.c: Tests VecSetValuesBlocked() on MPI vectors.
ex17.c: Scatters from a parallel vector to a sequential vector. In
ex17f.F90:
ex18.c: Compares BLAS dots on different machines. Input
ex19f.F90:
ex1k.kokkos.cxx: Benchmarking memory bandwidth with VecAXPY() on parallel vectors
ex2.c: Tests vector scatter-gather operations. Input arguments are
ex20f.F90:
ex21.c: Tests VecMax() with index.
ex22.c: Scatters from a parallel vector to a parallel vector.
ex23.c: Scatters from a parallel vector to a sequential vector.
ex24.c: Scatters from a parallel vector to a sequential vector.
ex25.c: Scatters from a parallel vector to a sequential vector. In
ex26f.F90:
ex27.c: Tests VecSetInf().
ex28.c: Tests repeated VecDotBegin()/VecDotEnd().
ex29.c: Tests VecSetValues() and VecSetValuesBlocked() on MPI vectors.
ex2k.c: Benchmarking VecMDot() or VecMAXPY()
ex3.c: Tests parallel vector assembly. Input arguments are
ex30f.F90:
ex31.c: Tests VecMaxPointwiseDivide()
ex32.c: A benchmark for testing PetscSortInt(), PetscSortIntSemiOrdered(), PetscSortIntWithArrayPair(), PetscIntSortSemiOrderedWithArray(), and PetscSortIntWithArray()
ex33.c: Tests the routines VecScatterCreateToAll(), VecScatterCreateToZero()
ex34.c: Tests for norm caching
ex35.c: Test VecGetArray4d()
ex36.c: Parallel vector layout.
ex37.c: Nest vector functionality.
ex38.c: Test VecGetSubVector()
ex39.c: This example is intended for showing how subvectors can
ex4.c: Scatters from a parallel vector into sequential vectors.
ex40.c: Tests taking part of existing array to create a new vector.
ex40f90.F90:
ex41.c: Nest vector set subvector functionality.
ex42.c: Scatters from a parallel vector to a parallel vector.
ex43.c: Tests VecMDot(),VecDot(),VecMTDot(), and VecTDot()
ex44.c:
ex45.c: Demonstrates VecStrideSubSetScatter() and VecStrideSubSetGather().
ex46.c: Tests PetscViewerBinary VecView()/VecLoad() function correctly when binary header is skipped.
ex47.c: Tests PetscViewerHDF5 VecView()/VecLoad() function.
ex48.c: Tests HDF5 attribute I/O.
ex49.c: Test VEC_SUBSET_OFF_PROC_ENTRIES
ex5.c: Scatters from a parallel vector to a sequential vector.
ex50.c: Test if VecLoad_HDF5 can correctly handle FFTW vectors
ex51.c: Test integrity of subvector data, use
ex52.c: Tests VecSum()
ex53.c: Tests VecShift()
ex54.c: Tests VecPointwiseMaxAbs()
ex55.c: Tests I/O of vector and string attribute for HDF5 format
ex56.c: Update the data in a VECVIENNACL via a CL kernel.
ex57.cxx:
ex58.c: Test VecCreate{Seq|MPI}CUDAWithArrays.
ex59.cxx: Test VecCreate{Seq|MPI}ViennaCLWithArrays.
ex6.c: Demonstrates a scatter with a stride and general index set.
ex60.c: Tests VecPlaceArray() and VecReciprocal().
ex61.c: Test VecSetValuesCOO
ex62.c: Test Vector conversions.
ex63.c: Tests VecExp().
ex64.c: Tests VecLog().
ex7.c: Demonstrates a scatter with a stride and general index set.
ex8.c: Demonstrates scattering with strided index sets.
ex9.c: Scatters from a parallel vector to a sequential vector.