SlepcVecSetRandom
Sets all components of a vector to random numbers.
Synopsis
#include "slepcsys.h"
PetscErrorCode SlepcVecSetRandom(Vec x,PetscRandom rctx)
Collective on Vec
Input/Output Parameter
x - the vector
Input Parameter
rctx - the random number context, formed by PetscRandomCreate(), or PETSC_NULL and
it will create one internally.
Note
This operation is equivalent to VecSetRandom - the difference is that the
vector generated by SlepcVecSetRandom is the same irrespective of the size
of the communicator.
Location: src/sys/slepcutil.c
Index of all sys routines
Table of Contents for all manual pages
Index of all manual pages