sc::SCMatrixBlockIter(3)
π sc::SCMatrixBlockIter β the manual, bestie edition π
Okay so real talk, this is the sc::SCMatrixBlockIter manpage from the MPQC manual, and honestly? It's giving "let me introduce you to my little iterator friend." No cap, it's actually so useful. Let's get into it. π«Ά
β¨ NAME β¨
sc::SCMatrixBlockIter β the vibes are: this class is used to describe iterators that loop through the elements in a block. Periodt. That's literally its whole personality. π
πΈ SYNOPSIS πΈ
Like, first things first, you gotta pull it in:
#include <blkiter.h>
And listen β it's inherited by a whole squad of subclasses. Not me listing them all but here we go:
sc::SCMatrixDiagBlockItersc::SCMatrixDiagSubBlockItersc::SCMatrixLTriBlockItersc::SCMatrixLTriSubBlockItersc::SCMatrixRectBlockItersc::SCMatrixRectSubBlockItersc::SCVectorSimpleBlockItersc::SCVectorSimpleSubBlockIter
It's giving main character energy with that many spin-offs, honestly. π
π Public Member Functions π
These are the moves, bestie. Every single one, no skips:
virtual int i () = 0β returns the row index. Slay. That's your row, bestie. πvirtual int j () = 0β returns the column index. Yes, column. We love a coordinate moment. πvirtual void set (double val) = 0β sets the current element toval. Iconic behaviour, honestly. β¨virtual void accum (double val)β addsvalto the current element. It's not a set, it's an accum. Respect the distinction. πvirtual double get () = 0β returns the value of the current element. Obsessed. πvirtual operator int () = 0β returns nonzero if there are more elements. Like, a vibe check: are we still iterating or are we done? iykyk. βvirtual void operator++ () = 0β moves to the next element. Om nom nom, next please. π¦void operator++ (int)β the postfix version. Hey, don't sleep on it just because it's not pure virtual. πvirtual void reset () = 0β starts the iteration over. It's giving second chances, and honestly? We love a reset era. π
π¦ Detailed Description π¦
So the SCMatrixBlockIter class is used to describe iterators that loop through the elements in a block. That's it. That's the whole thing. Genuinely iconic in its simplicity. π
π§ Author π§
Generated automatically by Doxygen for MPQC from the source code. Not a human, just a robot being helpful. Not me being jealous of a documentation generator. π
β Version β
Version 2.3.1 β dated Sun Oct 4 2020. A vintage. A classic. A moment in time. πΈ
And that's the whole spread, bestie. Go forth and iterate responsibly. Remember:i()andj()for coordinates,get()to peek,set()to assign,accum()to add, andoperator int()to know when to stop. The loop is the journey, fr fr. πβ¨
β signed, your Unix-obsessed bestie, here for you always π«Ά
π¦ 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