sc::SymRep(3)
π sc::SymRep(3) β the MPQC manual, bestie edition π
okay so this is a page out of the MPQC manual set (it's sc::SymRep(3), if you're keeping track), and honestly? it's kind of a baddie. let's get into it.
β¨ NAME β¨
sc::SymRep β the SymRep class provides an n dimensional matrix representation of a symmetry operation, such as a rotation or reflection. that's the whole vibe. it's literally a matrix that is a rotation or a reflection. iconic behavior.
πΈ SYNOPSIS πΈ
#include <pointgrp.h>
π¦ Public Member Functions π¦
SymRep (int=0)β constructor, defaulting the int to0.SymRep (const SymmetryOperation &)β constructor from aSymmetryOperation.operator SymmetryOperation () constβ cast to aSymmetryOperation.double trace () constβ returns the trace of the transformation matrix. (this is the character, more on that below π)void set_dim (int i)β set the dimension ofd.double * operator[] (int i)β returns thei'th row of the transformation matrix.const double * operator[] (int i) constβ const version of the above.double & operator() (int i, int j)β returns a reference to the(i,j)th element of the transformation matrix.double operator() (int i, int j) constβ const version ofdouble& operator()(int i, int j).void zero ()β zero out the symop.SymRep operate (const SymRep &r) constβ this operates on this withr(i.e. returnr * this).SymRep transform (const SymRep &r) constβ this performs the transformr * this * r~.void unit ()β set equal to a unit matrix.void E ()β set equal to the identity.void i ()β set equal to an inversion.void sigma_h ()β set equal to reflection inxyplane.void sigma_xz ()β set equal to reflection inxzplane.void sigma_yz ()β set equal to reflection inyzplane.void rotation (int n)β set equal to a clockwise rotation by2pi/n.void rotation (double theta)β the double-flavored rotation overload. πvoid c2_x ()β set equal toC2about thexaxis.void c2_y ()β set equal toC2about thexaxis. (yes, that's what the original says βc2_ybut the text saysxaxis. no cap, that's verbatim. don't come for me π)void print (std::ostream &=ExEnv::out0()) constβ print the matrix. default stream isExEnv::out0().
π Detailed Description π
The SymRep class provides an n dimensional matrix representation of a symmetry operation, such as a rotation or reflection.
The trace of a SymRep can be used as the character for that symmetry operation. d is hardwired to 5x5 since the H irrep in Ih is 5 dimensional. so yeah, that's not a setting, that's just how she is. periodt.
π Author π
Generated automatically by Doxygen for MPQC from the source code. (so if the prose is a little stiff, blame Doxygen, not me π)
π the cute sign-off π
this is Version 2.3.1, dated Sun Oct 4 2020, living on the sc::SymRep(3) page of the MPQC manual. take care of her, she's doing her best π«Άβ¨
π¦ 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