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

# sc\_SCElementShiftDiagonal(3)

## NAME

sc::SCElementShiftDiagonal

## SYNOPSIS

Inherits **sc::SCElementOp**.

### Public Member Functions

**SCElementShiftDiagonal** (double a)\
 **SCElementShiftDiagonal** (**StateIn** &)\
 int **has\_side\_effects** ()\
 By default this returns nonzero.  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.  void **process** (**SCMatrixBlockIter** &)\
 This is the fallback routine to process blocks and is called by process\_spec members that are not overridden.

### Additional Inherited Members

## Member Function Documentation

### int sc::SCElementShiftDiagonal::has\_side\_effects ()` [virtual]`

By default this returns nonzero. If the ElementOp specialization will change any elements of the matrix, then this must be overridden to return nonzero.

Reimplemented from **sc::SCElementOp**.

### void sc::SCElementShiftDiagonal::process (SCMatrixBlockIter &)` [virtual]`

This is the fallback routine to process blocks and is called by process\_spec members that are not overridden.

Implements **sc::SCElementOp**.

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

## Author

Generated automatically by Doxygen for MPQC from the source code.
