RGComputeQuadrature — SLEPc 3.25.1 documentation

Skip to main content
`Ctrl`+`K`

# RGComputeQuadrature

Computes the values of the parameters used in a quadrature rule for a contour integral around the boundary of the region.

## Synopsis

    #include "slepcrg.h"
    PetscErrorCode RGComputeQuadrature(RG rg,RGQuadRule quad,PetscInt n,PetscScalar z[],PetscScalar zn[],PetscScalar w[])

Not Collective

## Input Parameters

- rg - the region context

- quad - the type of quadrature

- n - number of quadrature points to compute

## Output Parameters

- z - quadrature points

- zn - normalized quadrature points

- w - quadrature weights

## Notes

In complex scalars, the values returned in `z` are often the same as those computed by `RGComputeContour()`, but this is not the case in real scalars where all output arguments are real.

The computed values change for different quadrature rules.

## See Also

RG: Region, `RGComputeContour()`

## Level

advanced

## Location

src/sys/classes/rg/interface/rgbasic.c

## Implementations

RGComputeQuadrature_Ellipse() in src/sys/classes/rg/impls/ellipse/rgellipse.c
RGComputeQuadrature_Interval() in src/sys/classes/rg/impls/interval/rginterval.c
RGComputeQuadrature_Ring() in src/sys/classes/rg/impls/ring/rgring.c

Index of all RG routines Table of Contents for all manual pages Index of all manual pages