sc::SCMatrixRectBlock(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

πŸ’… NAME πŸ’…

okay so bestie, welcome to the sc::SCMatrixRectBlock(3) page in the MPQC manual ✨ The SCMatrixRectBlock describes a rectangular piece of a matrix. periodt πŸ’–

✨ SYNOPSIS ✨

#include <block.h>

Inherits sc::SCMatrixBlock.

πŸ’… Public Member Functions πŸ’…

  • SCMatrixRectBlock (int is, int ie, int js, int je) β€” constructor taking those four int values, bestie.
  • SCMatrixRectBlock (StateIn &) β€” constructor from a 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.
  • SCMatrixBlock * deepcopy () const β€” returns a copy of this.
  • void process (SCElementOp *) β€” process overload for an SCElementOp *.
  • void process (SCElementOp2 *, SCMatrixBlock *) β€” process overload for an SCElementOp2 * and an SCMatrixBlock *.
  • void process (SCElementOp3 *, SCMatrixBlock *, SCMatrixBlock *) β€” process overload for an SCElementOp3 * and two SCMatrixBlock *s.
  • double * dat () β€” return a pointer to the block's data and the number of elements in the block.
  • int ndat () const β€” literally just the signature on this page, no extra synopsis blurb.

🌸 Public Attributes 🌸

  • int istart
  • int jstart
  • int iend
  • int jend
  • double * data

🧬 Additional Inherited Members 🧬

the source page just drops this heading here β€” no extra member details are listed under it, bestie 🫢

πŸ”₯ Detailed Description πŸ”₯

The SCMatrixRectBlock describes a rectangular piece of a matrix.

The following bit of code illustrates the data layout:

fill(double **matrix, SCMatrixRectBlock &b) { int offset=0; for (int i=b.istart; i<b.iend; i++) { for (int j=b.jstart; j<b.jend; j++,offset++) { matrix[i][j] = b.data[offset]; } } }

πŸ“š Member Function Documentation πŸ“š

πŸ’– double* sc::SCMatrixRectBlock::dat () [virtual] πŸ’–

Return a pointer to the block's data and the number of elements in the block. Some blocks cannot provide this information and a runtime error will be generated if these members are called. These routines are only used internally in the matrix library.

Reimplemented from sc::SCMatrixBlock.

πŸ¦‹ SCMatrixBlock* sc::SCMatrixRectBlock::deepcopy () const [virtual] πŸ¦‹

Returns a copy of this. A runtime error will be generated for blocks that cannot do a deepcopy. These routines are only used internally in the matrix library.

Reimplemented from sc::SCMatrixBlock.

πŸ“ void sc::SCMatrixRectBlock::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::SCMatrixBlock.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for MPQC from the source code.


okay that's the whole page, bestie 🫢 MPQC version 2.3.1, dated Sun Oct 4 2020, page sc::SCMatrixRectBlock(3) πŸ’…βœ¨

πŸ“¦ where this page comes from