Sophie

Sophie

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

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>sc::SCBlockInfo class Reference</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:17:38 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>sc::SCBlockInfo  Class Reference</h1><a class="el" href="class_sc__SCBlockInfo.html">SCBlockInfo</a> contains blocking information for the <a class="el" href="class_sc__SCDimension.html">SCDimension</a> class. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="dim_h-source.html">dim.h</a>&gt;</code>
<p>
Inheritance diagram for sc::SCBlockInfo<p><center><img src="class_sc__SCBlockInfo_inherit_graph.gif" border="0" usemap="#sc::SCBlockInfo_inherit_map" alt="Inheritance graph"></center>
<map name="sc::SCBlockInfo_inherit_map">
<area href="class_sc__SavableState.html" shape="rect" coords="21,214,122,233">
<area href="class_sc__DescribedClass.html" shape="rect" coords="14,147,129,166">
<area href="class_sc__RefCount.html" shape="rect" coords="30,81,113,99">
<area href="class_sc__Identity.html" shape="rect" coords="35,14,107,33">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for sc::SCBlockInfo:<p><center><img src="class_sc__SCBlockInfo_coll_graph.gif" border="0" usemap="#sc::SCBlockInfo_coll_map" alt="Collaboration graph"></center>
<map name="sc::SCBlockInfo_coll_map">
<area href="class_sc__SavableState.html" shape="rect" coords="31,222,133,241">
<area href="class_sc__DescribedClass.html" shape="rect" coords="14,153,129,171">
<area href="class_sc__RefCount.html" shape="rect" coords="30,83,113,102">
<area href="class_sc__Identity.html" shape="rect" coords="35,14,107,33">
<area href="class_sc__RefSCDimension.html" shape="rect" coords="158,222,283,241">
<area href="class_sc__Ref.html" shape="rect" coords="153,153,299,171">
<area href="class_sc__RefBase.html" shape="rect" coords="187,83,265,102">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_sc__SCBlockInfo-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top><a name="a0" doxytag="sc::SCBlockInfo::SCBlockInfo"></a>
&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a0">SCBlockInfo</a> (int n, int nblocks=0, const int *blocksizes=0)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Create a <a class="el" href="class_sc__SCBlockInfo.html">SCBlockInfo</a> object.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a1" doxytag="sc::SCBlockInfo::SCBlockInfo"></a>
&nbsp;</td><td valign=bottom><b>SCBlockInfo</b> (<a class="el" href="class_sc__StateIn.html">StateIn</a> &amp;)</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a2">SCBlockInfo</a> (const <a class="el" href="class_sc__Ref.html">Ref</a>&lt; <a class="el" href="class_sc__KeyVal.html">KeyVal</a> &gt; &amp;keyval)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>The <a class="el" href="class_sc__KeyVal.html">KeyVal</a> constructor.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a3" doxytag="sc::SCBlockInfo::~SCBlockInfo"></a>
&nbsp;</td><td valign=bottom><b>~SCBlockInfo</b> ()</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a4">save_data_state</a> (<a class="el" href="class_sc__StateOut.html">StateOut</a> &amp;)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Save the base classes (with save_data_state) and the members in the same order that the <a class="el" href="class_sc__StateIn.html">StateIn</a> CTOR initializes them.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a5" doxytag="sc::SCBlockInfo::equiv"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a5">equiv</a> (SCBlockInfo *bi)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return nonzero if this is equivalent to bi.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a6" doxytag="sc::SCBlockInfo::nelem"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a6">nelem</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return the total number of elements.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a7" doxytag="sc::SCBlockInfo::nblock"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a7">nblock</a> () const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return the number of blocks.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a8" doxytag="sc::SCBlockInfo::start"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a8">start</a> (int i) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return the starting index for block i.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a9" doxytag="sc::SCBlockInfo::size"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a9">size</a> (int i) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return the size of block i.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a10" doxytag="sc::SCBlockInfo::fence"></a>
int&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a10">fence</a> (int i) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return the last index + 1 for block i.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a11" doxytag="sc::SCBlockInfo::elem_to_block"></a>
void&nbsp;</td><td valign=bottom><b>elem_to_block</b> (int i, int &amp;block, int &amp;offset)</td></tr>
<tr><td nowrap align=right valign=top><a name="a12" doxytag="sc::SCBlockInfo::subdim"></a>
<a class="el" href="class_sc__RefSCDimension.html">RefSCDimension</a>&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a12">subdim</a> (int i)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Retreive subdimension information.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a13">set_subdim</a> (int i, const <a class="el" href="class_sc__RefSCDimension.html">RefSCDimension</a> &amp;dim)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Set subdimension information.</em> <a href="#a13">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a14" doxytag="sc::SCBlockInfo::print"></a>
void&nbsp;</td><td valign=bottom><a class="el" href="class_sc__SCBlockInfo.html#a14">print</a> (std::ostream &amp;o=ExEnv::out0()) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Print the object to the stream o.</em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
<tr><td nowrap align=right valign=top><a name="b0" doxytag="sc::SCBlockInfo::init_start"></a>
void&nbsp;</td><td valign=bottom><b>init_start</b> ()</td></tr>
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top><a name="n0" doxytag="sc::SCBlockInfo::n_"></a>
int&nbsp;</td><td valign=bottom><b>n_</b></td></tr>
<tr><td nowrap align=right valign=top><a name="n1" doxytag="sc::SCBlockInfo::nblocks_"></a>
int&nbsp;</td><td valign=bottom><b>nblocks_</b></td></tr>
<tr><td nowrap align=right valign=top><a name="n2" doxytag="sc::SCBlockInfo::start_"></a>
int*&nbsp;</td><td valign=bottom><b>start_</b></td></tr>
<tr><td nowrap align=right valign=top><a name="n3" doxytag="sc::SCBlockInfo::size_"></a>
int*&nbsp;</td><td valign=bottom><b>size_</b></td></tr>
<tr><td nowrap align=right valign=top><a name="n4" doxytag="sc::SCBlockInfo::subdims_"></a>
<a class="el" href="class_sc__RefSCDimension.html">RefSCDimension</a>*&nbsp;</td><td valign=bottom><b>subdims_</b></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="class_sc__SCBlockInfo.html">SCBlockInfo</a> contains blocking information for the <a class="el" href="class_sc__SCDimension.html">SCDimension</a> class.
<p>
There are really two ways that it can contain blocking information. In the first way, a vector of block offsets and block sizes is stored. The second method is only used by those specializations created by the BlockedSCMatrixKit class. In this method the blocking information is stored as subdimensions of type <a class="el" href="class_sc__SCDimension.html">SCDimension</a>. If both methods are used, they must be used consistently. That is, the number, sizes, and order of the blocks must match the number, sizes, and order of the <a class="el" href="class_sc__SCDimension.html">SCDimension</a> objects. 
<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a2" doxytag="sc::SCBlockInfo::SCBlockInfo"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
sc::SCBlockInfo::SCBlockInfo (
          </b></td>
          <td valign="bottom"><b>
const <a class="el" href="class_sc__Ref.html">Ref</a>&lt; <a class="el" href="class_sc__KeyVal.html">KeyVal</a> &gt; &amp; <em>keyval</em>&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The <a class="el" href="class_sc__KeyVal.html">KeyVal</a> constructor.
<p>

<dl compact>

<p>
<dt><code>sizes</code><dd> This is a vector giving the size of each subblock. There is no default.
<p>
<dt><code>subdims</code><dd> If this vector is given there is must be entry for each entry in the sizes vector. Each entry is an <a class="el" href="class_sc__SCDimension.html">SCDimension</a> object. The default is to not store subdimension information.
<p>

</dl>
     </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a4" doxytag="sc::SCBlockInfo::save_data_state"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
void sc::SCBlockInfo::save_data_state (
          </b></td>
          <td valign="bottom"><b>
<a class="el" href="class_sc__StateOut.html">StateOut</a> &amp; <em>s</em>&nbsp;)<code> [virtual]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Save the base classes (with save_data_state) and the members in the same order that the <a class="el" href="class_sc__StateIn.html">StateIn</a> CTOR initializes them.
<p>
This must be implemented by the derived class if the class has data. 
<p>
Reimplemented from <a class="el" href="class_sc__SavableState.html#a5">sc::SavableState</a>.    </td>
  </tr>
</table>
<a name="a13" doxytag="sc::SCBlockInfo::set_subdim"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
void sc::SCBlockInfo::set_subdim (
          </b></td>
          <td valign="bottom"><b>
int <em>i</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
const <a class="el" href="class_sc__RefSCDimension.html">RefSCDimension</a> &amp; <em>dim</em>&nbsp;)
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set subdimension information.
<p>
The dimension dim and index i must be consistent with the nblocks and blocksizes information given to the constructor.     </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="dim_h-source.html">dim.h</a></ul>
<hr>
<address>
<small>

Generated at Mon Oct 14 14:17:38 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>