---
name: "sc_GaussLegendreAngularIntegrator"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_GaussLegendreAngularIntegrator"
---

# sc\_GaussLegendreAngularIntegrator(3)

An implementation of an angular integrator using the Gauss-Legendre weights and grid points.

## NAME

sc::GaussLegendreAngularIntegrator - An implementation of an angular integrator using the Gauss-Legendre weights and grid points.

## SYNOPSIS

`#include <integrator.h>`

Inherits **sc::AngularIntegrator**.

### Public Member Functions

**GaussLegendreAngularIntegrator** (const **Ref**\< **KeyVal** \> &)\
 Contract a **GaussLegendreAngularIntegrator** from **KeyVal** input.  **GaussLegendreAngularIntegrator** (**StateIn** &)\
 void **save\_data\_state** (**StateOut** &)\
 Save the base classes (with save\_data\_state) and the members in the same order that the **StateIn** CTOR initializes them.  int **num\_angular\_points** (double r\_value, int ir)\
 double **angular\_point\_cartesian** (int iangular, double r, **SCVector3** &integration\_point) const\
 void **print** (std::ostream &=**ExEnv::out0**()) const\
 Print the object.

### Protected Member Functions

int **get\_ntheta** (void) const\
 void **set\_ntheta** (int i)\
 int **get\_nphi** (void) const\
 void **set\_nphi** (int i)\
 int **get\_Ktheta** (void) const\
 void **set\_Ktheta** (int i)\
 int **get\_ntheta\_r** (void) const\
 void **set\_ntheta\_r** (int i)\
 int **get\_nphi\_r** (void) const\
 void **set\_nphi\_r** (int i)\
 int **get\_Ktheta\_r** (void) const\
 void **set\_Ktheta\_r** (int i)\
 int **nw** (void) const\
 double **sin\_theta** (**SCVector3** &**point**) const\
 void **gauleg** (double x1, double x2, int n)\

### Protected Attributes

int **ntheta\_**\
 int **nphi\_**\
 int **Ktheta\_**\
 int **ntheta\_r\_**\
 int **nphi\_r\_**\
 int **Ktheta\_r\_**\
 double \* **theta\_quad\_weights\_**\
 double \* **theta\_quad\_points\_**\

### Additional Inherited Members

## Detailed Description

An implementation of an angular integrator using the Gauss-Legendre weights and grid points.

## Constructor & Destructor Documentation

### sc::GaussLegendreAngularIntegrator::GaussLegendreAngularIntegrator (const Ref\< KeyVal \> &)

Contract a **GaussLegendreAngularIntegrator** from **KeyVal** input. This class is for testing, the **LebedevLaikovIntegrator** is preferred for normal use. The following parameters are read: `ntheta`, `nphi`, and `Ktheta`.

## Member Function Documentation

### double sc::GaussLegendreAngularIntegrator::angular\_point\_cartesian (int iangular, double r, SCVector3 & integration\_point) const` [virtual]`

Implements **sc::AngularIntegrator**.

### int sc::GaussLegendreAngularIntegrator::num\_angular\_points (double r\_value, int ir)` [virtual]`

Implements **sc::AngularIntegrator**.

### int sc::GaussLegendreAngularIntegrator::nw (void) const` [protected]`, ` [virtual]`

Implements **sc::AngularIntegrator**.

### void sc::GaussLegendreAngularIntegrator::print (std::ostream & = ExEnv::out0`()`) const` [virtual]`

Print the object.

Reimplemented from **sc::DescribedClass**.

### void sc::GaussLegendreAngularIntegrator::save\_data\_state (StateOut &)` [virtual]`

Save the base classes (with save\_data\_state) and the members in the same order that the **StateIn** CTOR initializes them. This must be implemented by the derived class if the class has data.

Reimplemented from **sc::AngularIntegrator**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
