SlepcVecSetRandom

Sets all components of a vector to random numbers which follow a uniform distribution in [0,1).

Synopsis

#include "slepc.h" 
PetscErrorCode SlepcVecSetRandom(Vec x)
Collective on Vec

Input/Output Parameter

x - the vector

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.

See Also

VecSetRandom()

Location: src/sys/slepcutil.c
Index of all sys routines
Table of Contents for all manual pages
Index of all manual pages