Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > contrib > by-pkgid > 263386785cefb9ae5d63b926d214d809 > files > 960

mpqc-2.1.2-4mdk.ppc.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>extent.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.5 on Mon Oct 14 14:16:36 2002 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>extent.h</h1><div class="fragment"><pre>00001 <font class="comment">//</font>
00002 <font class="comment">// extent.h</font>
00003 <font class="comment">//</font>
00004 
00005 <font class="preprocessor">#ifndef _chemistry_qc_basis_extent_h</font>
00006 <font class="preprocessor"></font><font class="preprocessor">#define _chemistry_qc_basis_extent_h</font>
00007 <font class="preprocessor"></font>
00008 <font class="preprocessor">#ifdef __GNUC__</font>
00009 <font class="preprocessor"></font><font class="preprocessor">#pragma interface</font>
00010 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00011 <font class="preprocessor"></font>
00012 <font class="preprocessor">#include &lt;float.h&gt;</font>
00013 <font class="preprocessor">#include &lt;chemistry/qc/basis/basis.h&gt;</font>
00014 
00015 <font class="keyword">namespace </font>sc {
00016 
00017 <font class="keyword">struct </font>ExtentData {
00018     <font class="keywordtype">int</font> shell;
00019     <font class="keywordtype">double</font> bound;
00020     ExtentData()<font class="keyword"> </font>{}
00021     ExtentData(<font class="keywordtype">int</font> s, <font class="keywordtype">double</font> b): shell(s), bound(b) {}
00022 };
00023 
00024 ARRAY_dec(ExtentData);
00025 
00026 <font class="keyword">class </font>ShellExtent: <font class="keyword">public</font> RefCount {
00027     <font class="keywordtype">double</font> lower_[3];
00028     <font class="keywordtype">double</font> resolution_;
00029     <font class="keywordtype">int</font> n_[3];
00030     ArrayExtentData *contributing_shells_;
00031     ArrayExtentData null_;
00032 
00033     ArrayExtentData &amp;data(<font class="keywordtype">int</font> *b);
00034     <font class="keywordtype">double</font> distance(<font class="keywordtype">double</font> loc, <font class="keywordtype">int</font> axis, <font class="keywordtype">int</font> origin, <font class="keywordtype">int</font> point);
00035     ArrayExtentData &amp;data(<font class="keywordtype">int</font> x, <font class="keywordtype">int</font> y, <font class="keywordtype">int</font> z);
00036   <font class="keyword">public</font>:
00037     ShellExtent();
00038     ~ShellExtent();
00039     <font class="keywordtype">void</font> init(<font class="keyword">const</font> Ref&lt;GaussianBasisSet&gt;&amp;,
00040               <font class="keywordtype">double</font> resolution = 1.0, <font class="keywordtype">double</font> tolerance = DBL_EPSILON);
00043     <font class="keyword">const</font> ArrayExtentData &amp;contributing_shells(<font class="keywordtype">int</font> x, <font class="keywordtype">int</font> y, <font class="keywordtype">int</font> z)<font class="keyword"></font>
00044 <font class="keyword">        </font>{ <font class="keywordflow">return</font> data(x,y,z); }
00045     <font class="keyword">const</font> ArrayExtentData &amp;contributing_shells(<font class="keywordtype">double</font> x, <font class="keywordtype">double</font> y, <font class="keywordtype">double</font> z);
00046     <font class="keywordtype">void</font> print(std::ostream &amp;o = ExEnv::out0());
00047     <font class="keyword">const</font> <font class="keywordtype">int</font> *n()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> n_; }
00048     <font class="keywordtype">int</font> n(<font class="keywordtype">int</font> ixyz)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> n_[ixyz]; }
00049     <font class="keywordtype">double</font> lower(<font class="keywordtype">int</font> ixyz)<font class="keyword"> const </font>{ <font class="keywordflow">return</font> lower_[ixyz]; }
00050     <font class="keywordtype">double</font> resolution()<font class="keyword"> const </font>{ <font class="keywordflow">return</font> resolution_; }
00051 };
00052 
00053 }
00054 
00055 <font class="preprocessor">#endif</font>
00056 <font class="preprocessor"></font>
00057 <font class="comment">// Local Variables:</font>
00058 <font class="comment">// mode: c++</font>
00059 <font class="comment">// c-file-style: "CLJ"</font>
00060 <font class="comment">// End:</font>
</div></pre><hr>
<address>
<small>

Generated at Mon Oct 14 14:16:36 2002 for <a
href="http://aros.ca.sandia.gov/~cljanss/mpqc">MPQC</a>
2.1.2 using the documentation package <a
href="http://www.stack.nl/~dimitri/doxygen/index.html">Doxygen</a>
1.2.5.

</small>
</address>
</body>
</html>