slepc-3.6.1 2015-09-03
Report Typos and Errors

BVSetRandomColumn

Set one column of a BV to random numbers.

Synopsis

#include "slepcbv.h" 
PetscErrorCode BVSetRandomColumn(BV bv,PetscInt j,PetscRandom rctx)
Logically Collective on BV

Input Parameters

bv - basis vectors
j - column number to be set
rctx - the random number context, formed by PetscRandomCreate(), or NULL and it will create one internally.

Note

This operation is analogue to VecSetRandom - the difference is that the generated random vector is the same irrespective of the size of the communicator (if all processes pass a PetscRandom context initialized with the same seed).

See Also

BVSetRandom(), BVSetActiveColumns()

Location: src/sys/classes/bv/interface/bvops.c
Index of all BV routines
Table of Contents for all manual pages
Index of all manual pages