# sc_SymRep man page

sc::SymRep — The **SymRep** class provides an n dimensional matrix representation of a symmetry operation, such as a rotation or reflection.

## Synopsis

`#include <pointgrp.h>`

### Public Member Functions

SymRep(int=0)SymRep(constSymmetryOperation&)operator SymmetryOperation() constCast to aSymmetryOperation.

doubletrace() constreturns the trace of the transformation matrix

voidset_dim(inti)set the dimension of d

double *operator[](inti)returns the i'th row of the transformation matrix

const double *operator[](inti) constconst version of the above

double &operator()(inti, int j)returns a reference to the (i,j)th element of the transformation matrix

doubleoperator()(inti, int j) constconst version of double&operator()(int i, int j)

voidzero()zero out the symopSymRep operate(constSymRep&r) constThis operates on this with r (i.e. return r * this).SymRep transform(constSymRep&r) constThis performs the transform r * this * r~.

voidunit()Set equal to a unit matrix.

voidE()Set equal to the identity.

voidi()Set equal to an inversion.

voidsigma_h()Set equal to reflection in xy plane.

voidsigma_xz()Set equal to reflection in xz plane.

voidsigma_yz()Set equal to reflection in yz plane.

voidrotation(int n)Set equal to a clockwise rotation by 2pi/n.

voidrotation(double theta)

voidc2_x()Set equal to C2 about the x axis.

voidc2_y()Set equal to C2 about the x axis.

voidExEnv::out0()) constprint the matrix

## 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.

## Author

Generated automatically by Doxygen for MPQC from the source code.