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

# sc\_TwoBodyIntCints(3)

This implements electron repulsion integrals in the IntCints library.

## NAME

sc::TwoBodyIntCints - This implements electron repulsion integrals in the IntCints library.

## SYNOPSIS

`#include <tbintcints.h>`

Inherits **sc::TwoBodyInt**.

### Public Member Functions

**TwoBodyIntCints** (**Integral** \***integral**, const **Ref**\< **GaussianBasisSet** \> &b1, const **Ref**\< **GaussianBasisSet** \> &b2, const **Ref**\< **GaussianBasisSet** \> &b3, const **Ref**\< **GaussianBasisSet** \> &b4, size\_t storage, tbinteval int2etype)\
 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 **used\_storage** () const\
 void **set\_integral\_storage** (size\_t storage)\
 This storage is used to cache computed integrals.  const double \* **buffer** (**tbint\_type** te\_type) const\
 The computed shell integrals will be put in the buffer returned by this member.

### Protected Attributes

**Ref**\< **Int2eCints** \> **int2ecints\_**\

### Additional Inherited Members

## Detailed Description

This implements electron repulsion integrals in the IntCints library.

## Member Function Documentation

### const double \* sc::TwoBodyIntCints::buffer (tbint\_type type) const` [inline]`, ` [virtual]`

The computed shell integrals will be put in the buffer returned by this member. Some **TwoBodyInt** specializations have more than one buffer: The type arguments selects which buffer is returned. If the requested type is not supported, then 0 is returned.

Reimplemented from **sc::TwoBodyInt**.

### void sc::TwoBodyIntCints::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::TwoBodyIntCints::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**.

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

This storage is used to cache computed integrals.

Reimplemented from **sc::TwoBodyInt**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
