32#ifndef _math_symmetry_corrtab_h
33#define _math_symmetry_corrtab_h
37#include <math/symmetry/pointgrp.h>
46class CorrelationTable:
public RefCount {
81 int n()
const {
return n_; }
83 int subn()
const {
return subn_; }
90 int ngamma(
int igamma)
const {
return ngamma_[igamma]; }
93 int gamma(
int igamma,
int i)
const {
return gamma_[igamma][i]; }
Ref< PointGroup > subgroup() const
Returns the lower order point group.
Definition corrtab.h:69
const char * error(int errcod)
Converts error codes from initialize_table into a text string.
int gamma(int igamma, int i) const
Returns the irreps in the low order group that an irrep from the high order group can be reduced to.
Definition corrtab.h:93
int initialize_table(const Ref< PointGroup > &group, const Ref< PointGroup > &subgroup)
Initalize the correlation table.
int n() const
Returns the number of irreps in the high order group.
Definition corrtab.h:81
int degen(int igamma) const
Returns the degeneracy of the irrep.
Ref< PointGroup > group() const
Returns the higher order point group.
Definition corrtab.h:67
int ngamma(int igamma) const
Returns the number of irreps in the low order group that an irrep.
Definition corrtab.h:90
int subn() const
Returns the number of irreps in the subgroup.
Definition corrtab.h:83
int subdegen(int igamma) const
Returns the degeneracy of the subgroup irrep.
CorrelationTable(const Ref< PointGroup > &group, const Ref< PointGroup > &subgroup)
Create a correlation table for the two groups.
static std::ostream & out0()
Return an ostream that writes from node 0.
A template class that maintains references counts.
Definition ref.h:332