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

# sc\_BlockedDiagSCMatrix(3)

## NAME

sc::BlockedDiagSCMatrix

## SYNOPSIS

Inherits **sc::DiagSCMatrix**.

### Public Member Functions

**BlockedDiagSCMatrix** (const **RefSCDimension** &, **BlockedSCMatrixKit** \*)\
 void **save** (**StateOut** &)\
 Save and restore this in an implementation independent way.  void **restore** (**StateIn** &)\
 double **get\_element** (int) const\
 Return or modify an element.  void **set\_element** (int, double)\
 void **accumulate\_element** (int, double)\
 void **accumulate** (const **DiagSCMatrix** \*)\
 Sum m into this.  double **invert\_this** ()\
 Invert this.  double **determ\_this** ()\
 Return the determinant of this. this is overwritten.  double **trace** ()\
 Return the trace.  void **gen\_invert\_this** ()\
 Do a generalized inversion of this.  void **element\_op** (const **Ref**\< **SCElementOp** \> &)\
 Perform the element operation op on each element of this.  void **element\_op** (const **Ref**\< **SCElementOp2** \> &, **DiagSCMatrix** \*)\
 void **element\_op** (const **Ref**\< **SCElementOp3** \> &, **DiagSCMatrix** \*, **DiagSCMatrix** \*)\
 void **vprint** (const char \*title=0, std::ostream &out=**ExEnv::out0**(), int=10) const\
 **RefSCDimension** **dim** () const\
 **RefSCDimension** **dim** (int) const\
 int **nblocks** () const\
 **RefDiagSCMatrix** **block** (int)\
 **Ref**\< **SCMatrixSubblockIter** \> **local\_blocks** (SCMatrixSubblockIter::Access)\
 Returns iterators for the local (rapidly accessible) blocks used in this matrix.  **Ref**\< **SCMatrixSubblockIter** \> **all\_blocks** (SCMatrixSubblockIter::Access)\
 Returns iterators for the all blocks used in this matrix.

### Friends

class **BlockedSCMatrix**\
 class **BlockedSymmSCMatrix**\
 class **BlockedSCVector**\

### Additional Inherited Members

## Member Function Documentation

### void sc::BlockedDiagSCMatrix::accumulate (const DiagSCMatrix \* m)` [virtual]`

Sum m into this.

Implements **sc::DiagSCMatrix**.

### void sc::BlockedDiagSCMatrix::accumulate\_element (int, double)` [virtual]`

Implements **sc::DiagSCMatrix**.

### Ref\< SCMatrixSubblockIter \> sc::BlockedDiagSCMatrix::all\_blocks (SCMatrixSubblockIter::Access)` [virtual]`

Returns iterators for the all blocks used in this matrix.

Implements **sc::DiagSCMatrix**.

### double sc::BlockedDiagSCMatrix::determ\_this ()` [virtual]`

Return the determinant of this. this is overwritten.

Implements **sc::DiagSCMatrix**.

### void sc::BlockedDiagSCMatrix::element\_op (const Ref\< SCElementOp \> &)` [virtual]`

Perform the element operation op on each element of this.

Implements **sc::DiagSCMatrix**.

### void sc::BlockedDiagSCMatrix::element\_op (const Ref\< SCElementOp2 \> &, DiagSCMatrix \*)` [virtual]`

Implements **sc::DiagSCMatrix**.

### void sc::BlockedDiagSCMatrix::element\_op (const Ref\< SCElementOp3 \> &, DiagSCMatrix \*, DiagSCMatrix \*)` [virtual]`

Implements **sc::DiagSCMatrix**.

### void sc::BlockedDiagSCMatrix::gen\_invert\_this ()` [virtual]`

Do a generalized inversion of this.

Implements **sc::DiagSCMatrix**.

### double sc::BlockedDiagSCMatrix::get\_element (int) const` [virtual]`

Return or modify an element.

Implements **sc::DiagSCMatrix**.

### double sc::BlockedDiagSCMatrix::invert\_this ()` [virtual]`

Invert this.

Implements **sc::DiagSCMatrix**.

### Ref\< SCMatrixSubblockIter \> sc::BlockedDiagSCMatrix::local\_blocks (SCMatrixSubblockIter::Access)` [virtual]`

Returns iterators for the local (rapidly accessible) blocks used in this matrix.

Implements **sc::DiagSCMatrix**.

### void sc::BlockedDiagSCMatrix::restore (StateIn &)` [virtual]`

Reimplemented from **sc::DiagSCMatrix**.

### void sc::BlockedDiagSCMatrix::save (StateOut &)` [virtual]`

Save and restore this in an implementation independent way.

Reimplemented from **sc::DiagSCMatrix**.

### void sc::BlockedDiagSCMatrix::set\_element (int, double)` [virtual]`

Implements **sc::DiagSCMatrix**.

### double sc::BlockedDiagSCMatrix::trace ()` [virtual]`

Return the trace.

Implements **sc::DiagSCMatrix**.

### void sc::BlockedDiagSCMatrix::vprint (const char \* title = `0`, std::ostream & out = ExEnv::out0`()`, int = `10`) const` [virtual]`

Reimplemented from **sc::DiagSCMatrix**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
