Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

shellrot.h

00001 //
00002 // shellrot.h
00003 //
00004 // Copyright (C) 1996 Limit Point Systems, Inc.
00005 //
00006 // Author: Curtis Janssen <cljanss@limitpt.com>
00007 // Maintainer: LPS
00008 //
00009 // This file is part of the SC Toolkit.
00010 //
00011 // The SC Toolkit is free software; you can redistribute it and/or modify
00012 // it under the terms of the GNU Library General Public License as published by
00013 // the Free Software Foundation; either version 2, or (at your option)
00014 // any later version.
00015 //
00016 // The SC Toolkit is distributed in the hope that it will be useful,
00017 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 // GNU Library General Public License for more details.
00020 //
00021 // You should have received a copy of the GNU Library General Public License
00022 // along with the SC Toolkit; see the file COPYING.LIB.  If not, write to
00023 // the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
00024 //
00025 // The U.S. Government is granted a limited license as per AL 91-7.
00026 //
00027 
00028 #ifndef _chemistry_qc_basis_shellrot_h
00029 #define _chemistry_qc_basis_shellrot_h
00030 
00031 #ifdef __GNUC__
00032 #pragma interface
00033 #endif
00034 
00035 #include <math/symmetry/pointgrp.h>
00036 
00037 class Integral;
00041 class ShellRotation {
00042   private:
00043     int n_;
00044     int am_;
00045     double **r;
00046     
00047     void done();
00048 
00049   public:
00052     void init(int a, SymmetryOperation&, const Ref<Integral>&);
00056     void init_pure(int a, SymmetryOperation&, const Ref<Integral>&);
00057     
00059     ShellRotation(int n);
00061     ShellRotation(const ShellRotation&);
00063     ShellRotation(int a, SymmetryOperation&, const Ref<Integral>&, int pure =0);
00064     virtual ~ShellRotation();
00065 
00067     ShellRotation& operator=(const ShellRotation&);
00068     
00070     int am() const { return am_; }
00072     int dim() const { return n_; }
00073     
00075     double& operator()(int i, int j) { return r[i][j]; }
00077     double* operator[](int i) { return r[i]; }
00078     
00080     ShellRotation operate(const ShellRotation&rot) const;
00082     ShellRotation transform(const ShellRotation&rot) const;
00083     
00085     double trace() const;
00086     
00088     void print() const;
00089 };
00090 
00091 #endif
00092 
00093 // Local Variables:
00094 // mode: c++
00095 // c-file-style: "ETS"
00096 // End:

Generated at Thu Oct 4 18:08:47 2001 for MPQC 2.0.0 using the documentation package Doxygen 1.2.5.