PetscPDFConstant2D — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscPDFConstant2D

PDF for the uniform distribution in 2D

## Synopsis

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

Not Collective

## Input Parameters

- x - Coordinate in \([-1, 1]^2\)

- dummy - Unused

## Output Parameter

- p - The probability density at `x`

## See Also

`PetscCDFConstant2D()`, `PetscPDFSampleConstant2D()`, `PetscPDFConstant1D()`, `PetscPDFConstant3D()`

## 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