sc::SCMatrixRectBlock(3)
π 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 fourintvalues, bestie.SCMatrixRectBlock (StateIn &)β constructor from aStateIn &.void save_data_state (StateOut &)β save the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them.SCMatrixBlock * deepcopy () constβ returns a copy of this.void process (SCElementOp *)β process overload for anSCElementOp *.void process (SCElementOp2 *, SCMatrixBlock *)β process overload for anSCElementOp2 *and anSCMatrixBlock *.void process (SCElementOp3 *, SCMatrixBlock *, SCMatrixBlock *)β process overload for anSCElementOp3 *and twoSCMatrixBlock *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 istartint jstartint iendint jenddouble * 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
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms