PETSc version 3.17.5
Fix/Edit manual page

PetscPDFSampleConstant1D

Sample uniformly from a uniform distribution on [-1, 1] in 1D

Synopsis

#include "petscdt.h" 
PetscErrorCode PetscPDFSampleConstant1D(const PetscReal p[], const PetscReal dummy[], PetscReal x[])
Not collective

Input Parameter

p - A uniform variable on [0, 1]

Output Parameter

x - Coordinate in [-1, 1]

See Also

PetscPDFConstant1D(), PetscCDFConstant1D()

Level

beginner

Location

src/dm/dt/interface/dtprob.c
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages