petsc-3.12.5 2020-03-29
Report Typos and Errors
PetscArraymove
Copies from one array in memory to another, the arrays may overlap. Use
PetscArraycpy
() when the arrays do not overlap
Synopsis
#include <petscsys.h>
PetscErrorCode
PetscArraymove
(anytype *str1,const anytype *str2,size_t cnt)
Not Collective
Input Parameters
str1
- First array
str2
- Second array
cnt
- Count of the array, not in bytes, but number of entries in the arrays
Note
This routine is a preferred replacement to
PetscMemmove
() The arrays must be of the same type
See Also
PetscMemcpy
(),
PetscMemcmp
(),
PetscArrayzero
(),
PetscMemzero
(),
PetscArraycpy
(),
PetscMemmove
(),
PetscArraycmp
(),
PetscStrallocpy
()
Level
intermediate
Location
include/petscsys.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages