#include "petscvec.h" PetscErrorCode VecSetRandom(Vec x,PetscRandom rctx)Logically Collective on Vec Many br
x | - the vector Many br | |
rctx | - the random number context, formed by PetscRandomCreate(), or NULL and Many brit will create one internally. Many br |
PetscRandomCreate(PETSC_COMM_WORLD,&rctx); VecSetRandom(x,rctx); PetscRandomDestroy(rctx);Many br
Many br
Level:intermediate
Location:src/vec/vec/interface/vector.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages