:orphan:
# VecOperation
Enumeration of overide-able methods in the `Vec` implementation function-table. 
## Synopsis
```
typedef enum {
  VECOP_DUPLICATE  = 0,
  VECOP_SET        = 10,
  VECOP_VIEW       = 33,
  VECOP_LOAD       = 41,
  VECOP_VIEWNATIVE = 68,
  VECOP_LOADNATIVE = 69
} VecOperation;
```

## Values

- ***`VECOP_DUPLICATE`  -*** `VecDuplicate()`
- ***`VECOP_SET`        -*** `VecSet()`
- ***`VECOP_VIEW`       -*** `VecView()`
- ***`VECOP_LOAD`       -*** `VecLoad()`
- ***`VECOP_VIEWNATIVE` -*** `VecViewNative()`
- ***`VECOP_LOADNATIVE` -*** `VecLoadNative()`





## Notes
Some operations may serve as the implementation for other routines not listed above. For
example `VECOP_SET` can be used to simultaneously overriding the implementation used in
`VecSet()`, `VecSetInf()`, and `VecZeroEntries()`.

Entries to `VecOperation` are added as needed so if you do not see the operation listed which
you'd like to replace, please send mail to `petsc-maint@mcs.anl.gov`!


## See Also
 [](ch_vectors), `Vec`, `VecSetOperation()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscvec.h.html#VecOperation">include/petscvec.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscvec.h)


[Index of all Vec routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
