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

# sc\_TwoBodyIntCCA(3)

This implements two body integrals through the CCA interface.

## NAME

sc::TwoBodyIntCCA - This implements two body integrals through the CCA interface.

## SYNOPSIS

`#include <tbintcca.h>`

Inherits **sc::TwoBodyInt**.

### Public Member Functions

**TwoBodyIntCCA** (**Integral** \*, const **Ref**\< **GaussianBasisSet** \> &b1, const **Ref**\< **GaussianBasisSet** \> &b2, const **Ref**\< **GaussianBasisSet** \> &b3, const **Ref**\< **GaussianBasisSet** \> &b4, size\_t storage, IntegralEvaluatorFactory, bool, string)\
 int **log2\_shell\_bound** (int, int, int, int)\
 Return log base 2 of the maximum magnitude of any integral in a shell block obtained from compute\_shell.  void **compute\_shell** (int, int, int, int)\
 Given four shell indices, integrals will be computed and placed in the buffer.  size\_t **storage\_used** ()\
 void **set\_integral\_storage** (size\_t storage)\
 This storage is used to cache computed integrals.  int **redundant** () const\
 If redundant is true, then keep redundant integrals in the buffer.  void **set\_redundant** (int i)\
 See **redundant()**.

### Protected Attributes

**Ref**\< **Int2eCCA** \> **int2ecca\_**\

### Additional Inherited Members

## Detailed Description

This implements two body integrals through the CCA interface.

## Member Function Documentation

### void sc::TwoBodyIntCCA::compute\_shell (int, int, int, int)` [virtual]`

Given four shell indices, integrals will be computed and placed in the buffer. The first two indices correspond to electron 1 and the second two indices correspond to electron 2.

Implements **sc::TwoBodyInt**.

### int sc::TwoBodyIntCCA::log2\_shell\_bound (int, int, int, int)` [virtual]`

Return log base 2 of the maximum magnitude of any integral in a shell block obtained from compute\_shell. An index of -1 for any argument indicates any shell. \

Implements **sc::TwoBodyInt**.

### int sc::TwoBodyIntCCA::redundant () const` [inline]`, ` [virtual]`

If redundant is true, then keep redundant integrals in the buffer. The default is true.

Reimplemented from **sc::TwoBodyInt**.

### void sc::TwoBodyIntCCA::set\_integral\_storage (size\_t storage)` [virtual]`

This storage is used to cache computed integrals.

Reimplemented from **sc::TwoBodyInt**.

### void sc::TwoBodyIntCCA::set\_redundant (int i)` [inline]`, ` [virtual]`

See **redundant()**.

Reimplemented from **sc::TwoBodyInt**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
