PETSc version 3.16.6
Fix/Edit manual page

PetscArrayzero

Zeros an array in memory.

Synopsis

#include <petscsys.h>
PetscErrorCode PetscArrayzero(anytype *str1,size_t cnt)
Not Collective

Input Parameters

str1 - array
cnt - Count of the array, not in bytes, but number of entries in the array

Note

This routine is a preferred replacement to PetscMemzero()

See Also

PetscMemcpy(), PetscMemcmp(), PetscMemzero(), PetscArraycmp(), PetscArraycpy(), PetscMemmove(), PetscStrallocpy(), PetscArraymove()

Level

intermediate

Location

include/petscsys.h

Examples

src/dm/impls/plex/tutorials/ex6.c.html
src/ksp/ksp/tutorials/ex28.c.html
src/ts/tutorials/ex9.c.html
src/ts/tutorials/ex14.c.html
src/tao/leastsquares/tutorials/chwirut2.c.html

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages