Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 247b28499c443e092731ffba814075f2 > files > 21

mpqc-html-2.3.1-9mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>MPQC: abstract.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<h1>abstract.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// abstract.h</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// Copyright (C) 1996 Limit Point Systems, Inc.</span>
<a name="l00005"></a>00005 <span class="comment">//</span>
<a name="l00006"></a>00006 <span class="comment">// Author: Curtis Janssen &lt;cljanss@limitpt.com&gt;</span>
<a name="l00007"></a>00007 <span class="comment">// Maintainer: LPS</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// This file is part of the SC Toolkit.</span>
<a name="l00010"></a>00010 <span class="comment">//</span>
<a name="l00011"></a>00011 <span class="comment">// The SC Toolkit is free software; you can redistribute it and/or modify</span>
<a name="l00012"></a>00012 <span class="comment">// it under the terms of the GNU Library General Public License as published by</span>
<a name="l00013"></a>00013 <span class="comment">// the Free Software Foundation; either version 2, or (at your option)</span>
<a name="l00014"></a>00014 <span class="comment">// any later version.</span>
<a name="l00015"></a>00015 <span class="comment">//</span>
<a name="l00016"></a>00016 <span class="comment">// The SC Toolkit is distributed in the hope that it will be useful,</span>
<a name="l00017"></a>00017 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00018"></a>00018 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00019"></a>00019 <span class="comment">// GNU Library General Public License for more details.</span>
<a name="l00020"></a>00020 <span class="comment">//</span>
<a name="l00021"></a>00021 <span class="comment">// You should have received a copy of the GNU Library General Public License</span>
<a name="l00022"></a>00022 <span class="comment">// along with the SC Toolkit; see the file COPYING.LIB.  If not, write to</span>
<a name="l00023"></a>00023 <span class="comment">// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00024"></a>00024 <span class="comment">//</span>
<a name="l00025"></a>00025 <span class="comment">// The U.S. Government is granted a limited license as per AL 91-7.</span>
<a name="l00026"></a>00026 <span class="comment">//</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef _math_scmat_abstract_h</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define _math_scmat_abstract_h</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#ifdef __GNUC__</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;util/group/message.h&gt;</span>
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;util/state/state.h&gt;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;math/scmat/dim.h&gt;</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include &lt;math/scmat/block.h&gt;</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="keyword">namespace </span>sc {
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="keyword">class </span>SCMatrix;
<a name="l00045"></a>00045 <span class="keyword">class </span>SymmSCMatrix;
<a name="l00046"></a>00046 <span class="keyword">class </span>DiagSCMatrix;
<a name="l00047"></a>00047 <span class="keyword">class </span>SCVector;
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="keyword">class </span>SCElementOp;
<a name="l00050"></a>00050 <span class="keyword">class </span>SCElementOp2;
<a name="l00051"></a>00051 <span class="keyword">class </span>SCElementOp3;
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="keyword">class </span>RefSCDimension;
<a name="l00054"></a>00054 
<a name="l00058"></a><a class="code" href="classsc_1_1SCMatrixKit.html">00058</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCMatrixKit.html" title="The SCMatrixKit abstract class acts as a factory for producing matrices.">SCMatrixKit</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1DescribedClass.html" title="Classes which need runtime information about themselves and their relationship to...">DescribedClass</a> {
<a name="l00059"></a>00059   <span class="keyword">protected</span>:
<a name="l00060"></a>00060     <a class="code" href="classsc_1_1Ref.html">Ref&lt;MessageGrp&gt;</a> grp_;
<a name="l00061"></a>00061     
<a name="l00062"></a>00062   <span class="keyword">public</span>:
<a name="l00063"></a>00063     <a class="code" href="classsc_1_1SCMatrixKit.html" title="The SCMatrixKit abstract class acts as a factory for producing matrices.">SCMatrixKit</a>();
<a name="l00064"></a>00064     <a class="code" href="classsc_1_1SCMatrixKit.html" title="The SCMatrixKit abstract class acts as a factory for producing matrices.">SCMatrixKit</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref&lt;KeyVal&gt;</a>&amp;);
<a name="l00065"></a>00065     ~<a class="code" href="classsc_1_1SCMatrixKit.html" title="The SCMatrixKit abstract class acts as a factory for producing matrices.">SCMatrixKit</a>();
<a name="l00066"></a>00066 
<a name="l00067"></a>00067     <span class="comment">// these members are default in local.cc</span>
<a name="l00070"></a>00070 <span class="comment"></span>    <span class="keyword">static</span> <a class="code" href="classsc_1_1SCMatrixKit.html" title="The SCMatrixKit abstract class acts as a factory for producing matrices.">SCMatrixKit</a>* <a class="code" href="classsc_1_1SCMatrixKit.html#500fdd74c0483d5ec0a99102f241f884" title="This returns a LocalSCMatrixKit, unless the default has been changed with set_default_matrixkit...">default_matrixkit</a>();
<a name="l00071"></a>00071     <span class="keyword">static</span> <span class="keywordtype">void</span> set_default_matrixkit(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> &amp;);
<a name="l00072"></a>00072 
<a name="l00073"></a>00073     <a class="code" href="classsc_1_1Ref.html">Ref&lt;MessageGrp&gt;</a> messagegrp() <span class="keyword">const</span>;
<a name="l00074"></a>00074 
<a name="l00076"></a>00076     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>* <a class="code" href="classsc_1_1SCMatrixKit.html#ab3d81517b5374d90e8f980fb094ddd4" title="Given the dimensions, create matrices or vectors.">matrix</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;,<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;) = 0;
<a name="l00077"></a>00077     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>* symmmatrix(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;) = 0;
<a name="l00078"></a>00078     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>* diagmatrix(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;) = 0;
<a name="l00079"></a>00079     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>* vector(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;) = 0;
<a name="l00080"></a>00080 
<a name="l00083"></a>00083     <a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>* <a class="code" href="classsc_1_1SCMatrixKit.html#7735126a2758963b894d67b8dfc8dc30" title="Given the dimensions and a StateIn object, restore matrices or vectors.">restore_matrix</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;,
<a name="l00084"></a>00084                              <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;,
<a name="l00085"></a>00085                              <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;);
<a name="l00086"></a>00086     <a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>* restore_symmmatrix(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;,
<a name="l00087"></a>00087                                      <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;);
<a name="l00088"></a>00088     <a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>* restore_diagmatrix(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;,             
<a name="l00089"></a>00089                                      <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;);
<a name="l00090"></a>00090     <a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>* restore_vector(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;,
<a name="l00091"></a>00091                              <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;);
<a name="l00092"></a>00092 };
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 
<a name="l00097"></a><a class="code" href="classsc_1_1SCVector.html">00097</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1DescribedClass.html" title="Classes which need runtime information about themselves and their relationship to...">DescribedClass</a> {
<a name="l00098"></a>00098   <span class="keyword">protected</span>:
<a name="l00099"></a>00099     <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> d;
<a name="l00100"></a>00100     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> kit_;
<a name="l00101"></a>00101   <span class="keyword">public</span>:
<a name="l00102"></a>00102     <a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;, <a class="code" href="classsc_1_1SCMatrixKit.html" title="The SCMatrixKit abstract class acts as a factory for producing matrices.">SCMatrixKit</a> *);
<a name="l00103"></a>00103 
<a name="l00105"></a>00105     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#868faee106e6b101d18b0d5db2468dcf" title="Save and restore this in an implementation independent way.">save</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&amp;);
<a name="l00106"></a>00106     <span class="keyword">virtual</span> <span class="keywordtype">void</span> restore(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;);
<a name="l00107"></a>00107 
<a name="l00109"></a><a class="code" href="classsc_1_1SCVector.html#4faa46f136028646a4197b0d74f1356d">00109</a>     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> <a class="code" href="classsc_1_1SCVector.html#4faa46f136028646a4197b0d74f1356d" title="Return the SCMatrixKit used to create this object.">kit</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> kit_; }
<a name="l00110"></a>00110 
<a name="l00111"></a>00111     <span class="comment">// concrete functions (some can be overridden)</span>
<a name="l00113"></a>00113 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>* <a class="code" href="classsc_1_1SCVector.html#fa099e584dc63c21b14ac314cf2df7bd" title="Return a vector with the same dimension and same elements.">copy</a>();
<a name="l00115"></a>00115     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>* <a class="code" href="classsc_1_1SCVector.html#e67abfde7afb03b442003c720c0042b8" title="Return a vector with the same dimension but uninitialized memory.">clone</a>();
<a name="l00116"></a>00116 
<a name="l00117"></a>00117     <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>();
<a name="l00119"></a><a class="code" href="classsc_1_1SCVector.html#010a2c4674f277fffba987e437bcb4d5">00119</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1SCVector.html#010a2c4674f277fffba987e437bcb4d5" title="Return the length of the vector.">n</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d-&gt;n(); }
<a name="l00121"></a>00121     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SCVector.html#57227fbd0a6af7917fd1733ca010bddf" title="Return the maximum absolute value element of this vector.">maxabs</a>() <span class="keyword">const</span>;
<a name="l00123"></a>00123     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#24acb78ba1a836690aa4274dd4063dfb" title="Normalize this.">normalize</a>();
<a name="l00125"></a>00125     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#193412921561a746cdc13539978c0d12" title="Assign each element to a random number between -1 and 1.">randomize</a>();
<a name="l00127"></a><a class="code" href="classsc_1_1SCVector.html#f89d4256b1de0ba59fe44f2954b9d4f8">00127</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#f89d4256b1de0ba59fe44f2954b9d4f8" title="Assign all elements of this to val.">assign</a>(<span class="keywordtype">double</span> val) { <a class="code" href="classsc_1_1SCVector.html#4af28682a18187f1a4e11a881a71b078" title="Overridden to implement the assign functions.">assign_val</a>(val); }
<a name="l00129"></a><a class="code" href="classsc_1_1SCVector.html#653d31ec0bbe6dcdcabe4304597fade5">00129</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#653d31ec0bbe6dcdcabe4304597fade5" title="Assign element i to v[i] for all i.">assign</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>* v) { assign_p(v); }
<a name="l00132"></a><a class="code" href="classsc_1_1SCVector.html#f32e9fa1755cf11a2146305e943d0a14">00132</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#f32e9fa1755cf11a2146305e943d0a14" title="Make this have the same elements as v.">assign</a>(<a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>* v) { assign_v(v); }
<a name="l00134"></a>00134     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#4af28682a18187f1a4e11a881a71b078" title="Overridden to implement the assign functions.">assign_val</a>(<span class="keywordtype">double</span> val);
<a name="l00135"></a>00135     <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign_p(<span class="keyword">const</span> <span class="keywordtype">double</span>* v);
<a name="l00136"></a>00136     <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign_v(<a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a> *v);
<a name="l00138"></a>00138     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#5fd26604c62d6f00c006dea693f0f896" title="Assign v[i] to element i for all i.">convert</a>(<span class="keywordtype">double</span>* v) <span class="keyword">const</span>;
<a name="l00141"></a>00141     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#5fd26604c62d6f00c006dea693f0f896" title="Assign v[i] to element i for all i.">convert</a>(<a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>*);
<a name="l00142"></a>00142     <span class="keyword">virtual</span> <span class="keywordtype">void</span> convert_accumulate(<a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>*);
<a name="l00144"></a>00144     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#30ae351ba7ffc5d36f271b5aab11a8ba" title="Multiply each element by val.">scale</a>(<span class="keywordtype">double</span> val);
<a name="l00145"></a>00145 
<a name="l00147"></a><a class="code" href="classsc_1_1SCVector.html#ecbeb22901cf7c17f457b62d9f7acfd6">00147</a>     <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> <a class="code" href="classsc_1_1SCVector.html#ecbeb22901cf7c17f457b62d9f7acfd6" title="Return the RefSCDimension corresponding to this vector.">dim</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d; }
<a name="l00149"></a>00149     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#8bb97ef50c0ee20e2128e4512786de9d" title="Set element i to val.">set_element</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">double</span> val) = 0;
<a name="l00151"></a>00151     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#1aad44b682edef6708cd14851d976f3f" title="Add val to element i.">accumulate_element</a>(<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) = 0;
<a name="l00153"></a>00153     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SCVector.html#5466de0e544dc9c408c1781cc7fce6b8" title="Return the value of element i.">get_element</a>(<span class="keywordtype">int</span> i) <span class="keyword">const</span> = 0;
<a name="l00155"></a><a class="code" href="classsc_1_1SCVector.html#b716dd3536b6c118061e52778af80649">00155</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#b716dd3536b6c118061e52778af80649" title="Sum the result of m times v into this.">accumulate_product</a>(<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>* m, <a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>* v)
<a name="l00156"></a>00156         { accumulate_product_sv(m,v); }
<a name="l00157"></a>00157     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#b716dd3536b6c118061e52778af80649" title="Sum the result of m times v into this.">accumulate_product</a>(<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>* m, <a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>* v)
<a name="l00158"></a>00158         {  accumulate_product_rv(m,v); }
<a name="l00159"></a>00159     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_product_sv(SymmSCMatrix* m, SCVector* v);
<a name="l00160"></a>00160     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_product_rv(SCMatrix* m, SCVector* v) = 0;
<a name="l00162"></a>00162     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#33113c44286064bc2fb17713601545b8" title="Sum v into this.">accumulate</a>(<span class="keyword">const</span> SCVector*v) = 0;
<a name="l00164"></a>00164     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#33113c44286064bc2fb17713601545b8" title="Sum v into this.">accumulate</a>(<span class="keyword">const</span> SCMatrix*m) = 0;
<a name="l00166"></a>00166     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SCVector.html#ad3a0d844e63e4087cac2b224b614bd0" title="Return the dot product.">scalar_product</a>(SCVector*) = 0;
<a name="l00168"></a>00168     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#95b0df517a1480155b128e89f38e9d56" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> Ref&lt;SCElementOp&gt;&amp;) = 0;
<a name="l00169"></a>00169     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#95b0df517a1480155b128e89f38e9d56" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> Ref&lt;SCElementOp2&gt;&amp;,
<a name="l00170"></a>00170                             SCVector*) = 0;
<a name="l00171"></a>00171     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#95b0df517a1480155b128e89f38e9d56" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> Ref&lt;SCElementOp3&gt;&amp;,
<a name="l00172"></a>00172                             SCVector*,SCVector*) = 0;
<a name="l00174"></a>00174     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#ed94aba38fe56c8617b3ce865a765f93" title="Print out the vector.">print</a>(std::ostream&amp;o=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>()) <span class="keyword">const</span>;
<a name="l00175"></a>00175     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVector.html#ed94aba38fe56c8617b3ce865a765f93" title="Print out the vector.">print</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* title=0,std::ostream&amp;out=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>(),<span class="keywordtype">int</span>=10) <span class="keyword">const</span>;
<a name="l00176"></a>00176     <span class="keyword">virtual</span> <span class="keywordtype">void</span> vprint(<span class="keyword">const</span> <span class="keywordtype">char</span>*title=0,std::ostream&amp;out=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>(),
<a name="l00177"></a>00177                         <span class="keywordtype">int</span>=10) <span class="keyword">const</span> = 0;
<a name="l00178"></a>00178 
<a name="l00180"></a>00180     Ref&lt;MessageGrp&gt; <a class="code" href="classsc_1_1SCVector.html#df9de6373a9d2a21f190a55921977dfd" title="Returns the message group used by the matrix kit.">messagegrp</a>() <span class="keyword">const</span>;
<a name="l00181"></a>00181     
<a name="l00186"></a>00186     <span class="keyword">virtual</span> Ref&lt;SCMatrixSubblockIter&gt; <a class="code" href="classsc_1_1SCVector.html#7389c175a67225b500cbd4588baef60d" title="Returns iterators for the local (rapidly accessible) blocks used in this vector.">local_blocks</a>(
<a name="l00187"></a>00187         SCMatrixSubblockIter::Access) = 0;
<a name="l00189"></a>00189     <span class="keyword">virtual</span> Ref&lt;SCMatrixSubblockIter&gt; <a class="code" href="classsc_1_1SCVector.html#5353dade061824c39b3cfd7860b59914" title="Returns iterators for the all blocks used in this vector.">all_blocks</a>(SCMatrixSubblockIter::Access) = 0;
<a name="l00190"></a>00190 };
<a name="l00191"></a>00191 
<a name="l00195"></a><a class="code" href="classsc_1_1SCMatrix.html">00195</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1DescribedClass.html" title="Classes which need runtime information about themselves and their relationship to...">DescribedClass</a> {
<a name="l00196"></a>00196   <span class="keyword">protected</span>:
<a name="l00197"></a>00197     <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> d1,d2;
<a name="l00198"></a>00198     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> kit_;
<a name="l00199"></a>00199   <span class="keyword">public</span>:
<a name="l00200"></a>00200     <span class="comment">// used to control transformations</span>
<a name="l00201"></a>00201     <span class="keyword">enum</span> Transform { NormalTransform = 0, TransposeTransform = 1 };
<a name="l00202"></a>00202     
<a name="l00203"></a>00203     <span class="comment">// concrete functions (some can be overridden)</span>
<a name="l00204"></a>00204     <a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;, <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;, <a class="code" href="classsc_1_1SCMatrixKit.html" title="The SCMatrixKit abstract class acts as a factory for producing matrices.">SCMatrixKit</a> *);
<a name="l00205"></a>00205     <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>();
<a name="l00206"></a>00206 
<a name="l00208"></a>00208     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#f9e1bfe69b72bce5e68aa7ec4cc112fd" title="Save and restore this in an implementation independent way.">save</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&amp;);
<a name="l00209"></a>00209     <span class="keyword">virtual</span> <span class="keywordtype">void</span> restore(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;);
<a name="l00210"></a>00210 
<a name="l00212"></a><a class="code" href="classsc_1_1SCMatrix.html#b2d919fa2886ce85fa73a815206e5aa6">00212</a>     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> <a class="code" href="classsc_1_1SCMatrix.html#b2d919fa2886ce85fa73a815206e5aa6" title="Return the SCMatrixKit used to create this object.">kit</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> kit_; }
<a name="l00213"></a>00213 
<a name="l00215"></a><a class="code" href="classsc_1_1SCMatrix.html#b53e599abd6848cbff0f8754e1355756">00215</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1SCMatrix.html#b53e599abd6848cbff0f8754e1355756" title="Return the number of rows.">nrow</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d1-&gt;n(); }
<a name="l00217"></a><a class="code" href="classsc_1_1SCMatrix.html#db3622d518bf4cf40257b2a1f5d925bb">00217</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1SCMatrix.html#db3622d518bf4cf40257b2a1f5d925bb" title="Return the number of columns.">ncol</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d2-&gt;n(); }
<a name="l00219"></a>00219     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SCMatrix.html#2f22a56fac21238ffbd6825e52edeb3e" title="Return the maximum absolute value element.">maxabs</a>() <span class="keyword">const</span>;
<a name="l00221"></a>00221     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#15939748bbfb22e103a5b9500bf34dec" title="Assign each element to a random number between -1 and 1.">randomize</a>();
<a name="l00223"></a><a class="code" href="classsc_1_1SCMatrix.html#8f6384b994e748f8ac80960a93e71892">00223</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#8f6384b994e748f8ac80960a93e71892" title="Set all elements to val.">assign</a>(<span class="keywordtype">double</span> val) { <a class="code" href="classsc_1_1SCMatrix.html#72826c3f83a5ccb809681f71f071bce7" title="Overridden to implement to assign members.">assign_val</a>(val); }
<a name="l00225"></a><a class="code" href="classsc_1_1SCMatrix.html#85f8235f02096bc045faea7fc15d2dec">00225</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#85f8235f02096bc045faea7fc15d2dec" title="Assign element i, j to m[ir*nrow()+j].">assign</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>* m) { assign_p(m); }
<a name="l00227"></a><a class="code" href="classsc_1_1SCMatrix.html#9fb69c73cfec9a0773bc150d0f63e399">00227</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#9fb69c73cfec9a0773bc150d0f63e399" title="Assign element i, j to m[i][j].">assign</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>** m) { assign_pp(m); }
<a name="l00229"></a><a class="code" href="classsc_1_1SCMatrix.html#b8cff92ec65795af95a6d5f274326a8c">00229</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#b8cff92ec65795af95a6d5f274326a8c" title="Make this have the same elements as m. The dimensions must match.">assign</a>(<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>* m) { assign_r(m); }
<a name="l00231"></a>00231     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#72826c3f83a5ccb809681f71f071bce7" title="Overridden to implement to assign members.">assign_val</a>(<span class="keywordtype">double</span> val);
<a name="l00232"></a>00232     <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign_p(<span class="keyword">const</span> <span class="keywordtype">double</span>* m);
<a name="l00233"></a>00233     <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign_pp(<span class="keyword">const</span> <span class="keywordtype">double</span>** m);
<a name="l00234"></a>00234     <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign_r(<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>* m);
<a name="l00237"></a>00237     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#410e1c2ef1456e08d0532ed5a0a6074c" title="Like the assign members, but these write values to the arguments.">convert</a>(<span class="keywordtype">double</span>*) <span class="keyword">const</span>;
<a name="l00238"></a>00238     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#410e1c2ef1456e08d0532ed5a0a6074c" title="Like the assign members, but these write values to the arguments.">convert</a>(<span class="keywordtype">double</span>**) <span class="keyword">const</span>;
<a name="l00241"></a>00241     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#410e1c2ef1456e08d0532ed5a0a6074c" title="Like the assign members, but these write values to the arguments.">convert</a>(<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>*);
<a name="l00242"></a>00242     <span class="keyword">virtual</span> <span class="keywordtype">void</span> convert_accumulate(<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>*);
<a name="l00244"></a>00244     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#f7ce36782868f67e95f6cabf221e6286" title="Multiply all elements by val.">scale</a>(<span class="keywordtype">double</span> val);
<a name="l00246"></a>00246     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#66d26bbf7c13a4982f6a0bd000f04024" title="Scale the diagonal elements by val.">scale_diagonal</a>(<span class="keywordtype">double</span> val);
<a name="l00248"></a>00248     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#c4c3728b40ebdf25f6584f95a2260ec1" title="Shift the diagonal elements by val.">shift_diagonal</a>(<span class="keywordtype">double</span> val);
<a name="l00250"></a>00250     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#96b3b22d21da2c29c630081447823e38" title="Make this equal to the unit matrix.">unit</a>();
<a name="l00252"></a>00252     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>* <a class="code" href="classsc_1_1SCMatrix.html#16c6d6cd6f75863884ab37926d8afe12" title="Return a matrix with the same dimension and same elements.">copy</a>();
<a name="l00254"></a>00254     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>* <a class="code" href="classsc_1_1SCMatrix.html#cd2bc2ff54eeae2f926312138cba5c38" title="Return a matrix with the same dimension but uninitialized memory.">clone</a>();
<a name="l00255"></a>00255 
<a name="l00256"></a>00256     <span class="comment">// pure virtual functions</span>
<a name="l00258"></a><a class="code" href="classsc_1_1SCMatrix.html#08da864f11cdb65fd629e3d2af8f8fc3">00258</a> <span class="comment"></span>    <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> <a class="code" href="classsc_1_1SCMatrix.html#08da864f11cdb65fd629e3d2af8f8fc3" title="Return the row or column dimension.">rowdim</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d1; }
<a name="l00259"></a>00259     <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> coldim()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d2; }
<a name="l00261"></a>00261     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SCMatrix.html#96ff6f7071e04cf098c76ac6481ac499" title="Return or modify an element.">get_element</a>(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>) <span class="keyword">const</span> = 0;
<a name="l00262"></a>00262     <span class="keyword">virtual</span> <span class="keywordtype">void</span> set_element(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) = 0;
<a name="l00263"></a>00263     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_element(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) = 0;
<a name="l00264"></a>00264     
<a name="l00268"></a>00268     <span class="keyword">virtual</span> SCMatrix * <a class="code" href="classsc_1_1SCMatrix.html#4c7506e004b4a3e6fd89afc8e4c694d3" title="Return a subblock of this.">get_subblock</a>(<span class="keywordtype">int</span> br, <span class="keywordtype">int</span> er, <span class="keywordtype">int</span> bc, <span class="keywordtype">int</span> ec) =0;
<a name="l00269"></a>00269 
<a name="l00271"></a>00271     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#63186166dee413c152b3633e06067dae" title="Assign m to a subblock of this.">assign_subblock</a>(SCMatrix *m, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>=0, <span class="keywordtype">int</span>=0) =0;
<a name="l00272"></a>00272 
<a name="l00274"></a>00274     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#1d54e4fe65f0be1678421f95383c9513" title="Sum m into a subblock of this.">accumulate_subblock</a>(SCMatrix *m, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>=0,<span class="keywordtype">int</span>=0) =0;
<a name="l00275"></a>00275     
<a name="l00277"></a>00277     <span class="keyword">virtual</span> SCVector * <a class="code" href="classsc_1_1SCMatrix.html#d1f66a18375cd713a4713180cecf9eaf" title="Return a row or column of this.">get_row</a>(<span class="keywordtype">int</span> i) =0;
<a name="l00278"></a>00278     <span class="keyword">virtual</span> SCVector * get_column(<span class="keywordtype">int</span> i) =0;
<a name="l00279"></a>00279 
<a name="l00281"></a>00281     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#fbaa7ff9fa30518029c8049397fdfc97" title="Assign v to a row or column of this.">assign_row</a>(SCVector *v, <span class="keywordtype">int</span> i) =0;
<a name="l00282"></a>00282     <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign_column(SCVector *v, <span class="keywordtype">int</span> i) =0;
<a name="l00283"></a>00283     
<a name="l00285"></a>00285     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#958b851b6b363eaff71cbb5101cbbdd5" title="Sum v to a row or column of this.">accumulate_row</a>(SCVector *v, <span class="keywordtype">int</span> i) =0;
<a name="l00286"></a>00286     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_column(SCVector *v, <span class="keywordtype">int</span> i) =0;
<a name="l00287"></a>00287     
<a name="l00289"></a>00289     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#e1ece8cb85f61b2579293478f1f71f6a" title="Sum m into this.">accumulate</a>(<span class="keyword">const</span> SCMatrix* m) = 0;
<a name="l00290"></a>00290     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#e1ece8cb85f61b2579293478f1f71f6a" title="Sum m into this.">accumulate</a>(<span class="keyword">const</span> SymmSCMatrix* m) = 0;
<a name="l00291"></a>00291     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#e1ece8cb85f61b2579293478f1f71f6a" title="Sum m into this.">accumulate</a>(<span class="keyword">const</span> DiagSCMatrix* m) = 0;
<a name="l00292"></a>00292     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#e1ece8cb85f61b2579293478f1f71f6a" title="Sum m into this.">accumulate</a>(<span class="keyword">const</span> SCVector*) = 0;
<a name="l00294"></a>00294     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#3f2510e060e0ddf97d3dce8c428bdcd6" title="Sum into this the products of various vectors or matrices.">accumulate_outer_product</a>(SCVector*,SCVector*) = 0;
<a name="l00295"></a>00295     <span class="keywordtype">void</span> accumulate_product(SCMatrix*m1,SCMatrix*m2)
<a name="l00296"></a>00296         { accumulate_product_rr(m1,m2); }
<a name="l00297"></a>00297     <span class="keywordtype">void</span> accumulate_product(SCMatrix*m1,SymmSCMatrix*m2)
<a name="l00298"></a>00298         { accumulate_product_rs(m1,m2); }
<a name="l00299"></a>00299     <span class="keywordtype">void</span> accumulate_product(SCMatrix*m1,DiagSCMatrix*m2)
<a name="l00300"></a>00300         { accumulate_product_rd(m1,m2); }
<a name="l00301"></a>00301     <span class="keywordtype">void</span> accumulate_product(SymmSCMatrix*m1,SCMatrix*m2)
<a name="l00302"></a>00302         { accumulate_product_sr(m1,m2); }
<a name="l00303"></a>00303     <span class="keywordtype">void</span> accumulate_product(DiagSCMatrix*m1,SCMatrix*m2)
<a name="l00304"></a>00304         { accumulate_product_dr(m1,m2); }
<a name="l00305"></a>00305     <span class="keywordtype">void</span> accumulate_product(SymmSCMatrix*m1,SymmSCMatrix*m2)
<a name="l00306"></a>00306         { accumulate_product_ss(m1,m2); }
<a name="l00307"></a>00307     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_product_rr(SCMatrix*,SCMatrix*) = 0;
<a name="l00308"></a>00308     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_product_rs(SCMatrix*,SymmSCMatrix*);
<a name="l00309"></a>00309     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_product_rd(SCMatrix*,DiagSCMatrix*);
<a name="l00310"></a>00310     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_product_sr(SymmSCMatrix*,SCMatrix*);
<a name="l00311"></a>00311     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_product_dr(DiagSCMatrix*,SCMatrix*);
<a name="l00312"></a>00312     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_product_ss(SymmSCMatrix*,SymmSCMatrix*);
<a name="l00314"></a>00314     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#d159a57fc9cede233e2db16cf75906b9" title="Transpose this.">transpose_this</a>() = 0;
<a name="l00316"></a>00316     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SCMatrix.html#b6ba292937c46eb212ae9cd1c165ab1a" title="Return the trace.">trace</a>() =0;
<a name="l00318"></a>00318     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SCMatrix.html#0758d366e2833b666c515a8bb5c7eb7c" title="Invert this.">invert_this</a>() = 0;
<a name="l00320"></a>00320     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SCMatrix.html#6139e73b78dbe96c38861d7f669e19d1" title="Return the determinant of this. this is overwritten.">determ_this</a>() = 0;
<a name="l00321"></a>00321 
<a name="l00324"></a>00324     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#887d10a99aa0d129eb4cdec2fc520c2a" title="Compute the singular value decomposition for this, possibly destroying this.">svd_this</a>(SCMatrix *U, DiagSCMatrix *sigma, SCMatrix *V);
<a name="l00325"></a>00325     <span class="keyword">virtual</span> <span class="keywordtype">double</span> solve_this(SCVector*) = 0;
<a name="l00326"></a>00326     <span class="keyword">virtual</span> <span class="keywordtype">void</span> gen_invert_this();
<a name="l00327"></a>00327 
<a name="l00330"></a>00330     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#5d8a1b6010f1ab8788bff65e98a55247" title="Schmidt orthogonalize this.">schmidt_orthog</a>(SymmSCMatrix*, <span class="keywordtype">int</span> n) =0;
<a name="l00331"></a>00331 
<a name="l00335"></a>00335     <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classsc_1_1SCMatrix.html#4aaf43839f2e34692417af6417752528" title="Schmidt orthogonalize this.">schmidt_orthog_tol</a>(SymmSCMatrix*, <span class="keywordtype">double</span> tol, <span class="keywordtype">double</span>*res=0)=0;
<a name="l00336"></a>00336     
<a name="l00338"></a>00338     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#7176000028a66b120a7b953c973a13a1" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> Ref&lt;SCElementOp&gt;&amp;) = 0;
<a name="l00339"></a>00339     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#7176000028a66b120a7b953c973a13a1" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> Ref&lt;SCElementOp2&gt;&amp;,
<a name="l00340"></a>00340                             SCMatrix*) = 0;
<a name="l00341"></a>00341     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#7176000028a66b120a7b953c973a13a1" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> Ref&lt;SCElementOp3&gt;&amp;,
<a name="l00342"></a>00342                             SCMatrix*,SCMatrix*) = 0;
<a name="l00344"></a>00344     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#10ca860910a41bf0eb8c77bd5d0df750" title="Print out the matrix.">print</a>(std::ostream&amp;o=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>()) <span class="keyword">const</span>;
<a name="l00345"></a>00345     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrix.html#10ca860910a41bf0eb8c77bd5d0df750" title="Print out the matrix.">print</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* title=0,std::ostream&amp; out=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>(),
<a name="l00346"></a>00346                <span class="keywordtype">int</span> =10) <span class="keyword">const</span>;
<a name="l00347"></a>00347     <span class="keyword">virtual</span> <span class="keywordtype">void</span> vprint(<span class="keyword">const</span> <span class="keywordtype">char</span>*title=0,
<a name="l00348"></a>00348                         std::ostream&amp;out=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>(),<span class="keywordtype">int</span> =10) <span class="keyword">const</span> = 0;
<a name="l00349"></a>00349 
<a name="l00351"></a>00351     Ref&lt;MessageGrp&gt; <a class="code" href="classsc_1_1SCMatrix.html#64f0c6616f47a4316b45512f749bb3ab" title="Returns the message group used by the matrix kit.">messagegrp</a>() <span class="keyword">const</span>;
<a name="l00352"></a>00352     
<a name="l00355"></a>00355     <span class="keyword">virtual</span> Ref&lt;SCMatrixSubblockIter&gt; <a class="code" href="classsc_1_1SCMatrix.html#d6e944b1d75de95b8fae0e51a225c65e" title="Returns iterators for the local (rapidly accessible) blocks used in this matrix.">local_blocks</a>(
<a name="l00356"></a>00356         SCMatrixSubblockIter::Access) = 0;
<a name="l00358"></a>00358     <span class="keyword">virtual</span> Ref&lt;SCMatrixSubblockIter&gt; <a class="code" href="classsc_1_1SCMatrix.html#578dbfc448ebd5b314164f84477a779e" title="Returns iterators for the all blocks used in this matrix.">all_blocks</a>(
<a name="l00359"></a>00359         SCMatrixSubblockIter::Access) = 0;
<a name="l00360"></a>00360 };
<a name="l00361"></a>00361 
<a name="l00364"></a><a class="code" href="classsc_1_1SymmSCMatrix.html">00364</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1DescribedClass.html" title="Classes which need runtime information about themselves and their relationship to...">DescribedClass</a> {
<a name="l00365"></a>00365   <span class="keyword">protected</span>:
<a name="l00366"></a>00366     <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> d;
<a name="l00367"></a>00367     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> kit_;
<a name="l00368"></a>00368   <span class="keyword">public</span>:
<a name="l00369"></a>00369     <a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;, <a class="code" href="classsc_1_1SCMatrixKit.html" title="The SCMatrixKit abstract class acts as a factory for producing matrices.">SCMatrixKit</a> *);
<a name="l00370"></a>00370     ~<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>();
<a name="l00371"></a>00371 
<a name="l00373"></a><a class="code" href="classsc_1_1SymmSCMatrix.html#914a808c0cbc88ce434e9253741f6036">00373</a>     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> <a class="code" href="classsc_1_1SymmSCMatrix.html#914a808c0cbc88ce434e9253741f6036" title="Return the SCMatrixKit object that created this object.">kit</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> kit_; }
<a name="l00374"></a>00374 
<a name="l00376"></a>00376     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#c7065dc9c65af01b3c57ecbf62ed4d87" title="Save and restore this in an implementation independent way.">save</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&amp;);
<a name="l00377"></a>00377     <span class="keyword">virtual</span> <span class="keywordtype">void</span> restore(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;);
<a name="l00379"></a>00379     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#d82d5d60917d5b38a8cdb819f4793d74" title="Return the maximum absolute value element of this vector.">maxabs</a>() <span class="keyword">const</span>;
<a name="l00381"></a>00381     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#39bd5083e8776b886aa5fe9da93a306e" title="Assign each element to a random number between -1 and 1.">randomize</a>();
<a name="l00383"></a><a class="code" href="classsc_1_1SymmSCMatrix.html#42631ff85c8eb4d3d21092d7cfe829a2">00383</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#42631ff85c8eb4d3d21092d7cfe829a2" title="Set all elements to val.">assign</a>(<span class="keywordtype">double</span> val) { <a class="code" href="classsc_1_1SymmSCMatrix.html#6e8749c82fbcd7777a6b4efc81980de1" title="Overridden to implement the assign functions.">assign_val</a>(val); }
<a name="l00385"></a><a class="code" href="classsc_1_1SymmSCMatrix.html#7b3d91882ea73c410ead6df61b2160ba">00385</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#7b3d91882ea73c410ead6df61b2160ba" title="Assign element i, j to m[i*(i+1)/2+j].">assign</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>* m) { assign_p(m); }
<a name="l00387"></a><a class="code" href="classsc_1_1SymmSCMatrix.html#fc629f507afd08ab900f93f2521a531a">00387</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#fc629f507afd08ab900f93f2521a531a" title="Assign element i, j to m[i][j].">assign</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>** m) { assign_pp(m); }
<a name="l00390"></a><a class="code" href="classsc_1_1SymmSCMatrix.html#2f4fa3391fb82048b523b8d842f5e31c">00390</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#2f4fa3391fb82048b523b8d842f5e31c" title="Make this have the same elements as m.">assign</a>(<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>* m) { assign_s(m); }
<a name="l00392"></a>00392     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#6e8749c82fbcd7777a6b4efc81980de1" title="Overridden to implement the assign functions.">assign_val</a>(<span class="keywordtype">double</span> val);
<a name="l00393"></a>00393     <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign_p(<span class="keyword">const</span> <span class="keywordtype">double</span>* m);
<a name="l00394"></a>00394     <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign_pp(<span class="keyword">const</span> <span class="keywordtype">double</span>** m);
<a name="l00395"></a>00395     <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign_s(<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>* m);
<a name="l00397"></a>00397     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#7d26e0977fed8c3b4d289888091a98c2" title="Like the assign members, but these write values to the arguments.">convert</a>(<span class="keywordtype">double</span>*) <span class="keyword">const</span>;
<a name="l00398"></a>00398     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#7d26e0977fed8c3b4d289888091a98c2" title="Like the assign members, but these write values to the arguments.">convert</a>(<span class="keywordtype">double</span>**) <span class="keyword">const</span>;
<a name="l00401"></a>00401     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#7d26e0977fed8c3b4d289888091a98c2" title="Like the assign members, but these write values to the arguments.">convert</a>(<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>*);
<a name="l00402"></a>00402     <span class="keyword">virtual</span> <span class="keywordtype">void</span> convert_accumulate(<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>*);
<a name="l00404"></a>00404     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#219c7e331912919997dfbf1fb5966665" title="Multiply all elements by val.">scale</a>(<span class="keywordtype">double</span>);
<a name="l00406"></a>00406     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#5e88ab79d76cb6d7da2c910450b731bf" title="Scale the diagonal elements by val.">scale_diagonal</a>(<span class="keywordtype">double</span>);
<a name="l00408"></a>00408     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#fddd1c75e5ec0588ffdea564e179b041" title="Shift the diagonal elements by val.">shift_diagonal</a>(<span class="keywordtype">double</span>);
<a name="l00410"></a>00410     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#0df4ad430e841a6a3613da1d75801bc0" title="Make this equal to the unit matrix.">unit</a>();
<a name="l00412"></a><a class="code" href="classsc_1_1SymmSCMatrix.html#9b06dc14a158a5f3d47206a03f717135">00412</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#9b06dc14a158a5f3d47206a03f717135" title="Return the dimension.">n</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d-&gt;n(); }
<a name="l00414"></a>00414     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>* <a class="code" href="classsc_1_1SymmSCMatrix.html#81c314abf76086bbc087e29c26583914" title="Return a matrix with the same dimension and same elements.">copy</a>();
<a name="l00416"></a>00416     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>* <a class="code" href="classsc_1_1SymmSCMatrix.html#75259a69276041daaad0eeda9e4b63f4" title="Return a matrix with the same dimension but uninitialized memory.">clone</a>();
<a name="l00417"></a>00417 
<a name="l00418"></a>00418     <span class="comment">// pure virtual functions</span>
<a name="l00420"></a><a class="code" href="classsc_1_1SymmSCMatrix.html#d3984380a70240e40e3033a21c2d42b7">00420</a> <span class="comment"></span>    <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> <a class="code" href="classsc_1_1SymmSCMatrix.html#d3984380a70240e40e3033a21c2d42b7" title="Return the dimension.">dim</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d; }
<a name="l00422"></a>00422     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#ee88dbb636d9133cec4018d66a0e0cac" title="Return or modify an element.">get_element</a>(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>) <span class="keyword">const</span> = 0;
<a name="l00423"></a>00423     <span class="keyword">virtual</span> <span class="keywordtype">void</span> set_element(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) = 0;
<a name="l00424"></a>00424     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_element(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) = 0;
<a name="l00425"></a>00425 
<a name="l00429"></a>00429     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a> * <a class="code" href="classsc_1_1SymmSCMatrix.html#86cb3a71ad33c8905cb07af731e2432e" title="Return a subblock of this.">get_subblock</a>(<span class="keywordtype">int</span> br, <span class="keywordtype">int</span> er, <span class="keywordtype">int</span> bc, <span class="keywordtype">int</span> ec) =0;
<a name="l00430"></a>00430     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a> * <a class="code" href="classsc_1_1SymmSCMatrix.html#86cb3a71ad33c8905cb07af731e2432e" title="Return a subblock of this.">get_subblock</a>(<span class="keywordtype">int</span> br, <span class="keywordtype">int</span> er) =0;
<a name="l00431"></a>00431 
<a name="l00433"></a>00433     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#b8766c04fe01e505b79ba4a7b34c7bc9" title="Assign m to a subblock of this.">assign_subblock</a>(<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a> *m, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>) =0;
<a name="l00434"></a>00434     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#b8766c04fe01e505b79ba4a7b34c7bc9" title="Assign m to a subblock of this.">assign_subblock</a>(<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a> *m, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>) =0;
<a name="l00435"></a>00435 
<a name="l00437"></a>00437     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#28d7c2b357d77eec9d1f77401a2e3922" title="Sum m into a subblock of this.">accumulate_subblock</a>(<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a> *m, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>) =0;
<a name="l00438"></a>00438     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#28d7c2b357d77eec9d1f77401a2e3922" title="Sum m into a subblock of this.">accumulate_subblock</a>(<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a> *m, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>) =0;
<a name="l00439"></a>00439 
<a name="l00441"></a>00441     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a> * <a class="code" href="classsc_1_1SymmSCMatrix.html#eb5eeadd93ed1abd71a22b9071d3731b" title="Return a row of this.">get_row</a>(<span class="keywordtype">int</span> i) =0;
<a name="l00442"></a>00442 
<a name="l00444"></a>00444     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#fd98a521fe83b8e403198db44eff97e4" title="Assign v to a row of this.">assign_row</a>(<a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a> *v, <span class="keywordtype">int</span> i) =0;
<a name="l00445"></a>00445     
<a name="l00447"></a>00447     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#87c3cfa95a79ba54852e196b1e31b5cc" title="Sum v to a row of this.">accumulate_row</a>(<a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a> *v, <span class="keywordtype">int</span> i) =0;
<a name="l00448"></a>00448 
<a name="l00451"></a>00451     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#afc81e99558c2197b7a13618a0eb6557" title="Diagonalize this, placing the eigenvalues in d and the eigenvectors in m.">diagonalize</a>(<a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>*d,<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>*m) = 0;
<a name="l00453"></a>00453     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#635a724abd3d86045b8ba22c94d94994" title="Sum m into this.">accumulate</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>* m) = 0;
<a name="l00455"></a>00455     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#49c359558fbd06428d4d49848db65b68" title="Sum into this the products of various vectors or matrices.">accumulate_symmetric_sum</a>(<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>*) = 0;
<a name="l00456"></a>00456     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_symmetric_product(<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>*);
<a name="l00457"></a>00457     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_transform(<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>*,<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>*,
<a name="l00458"></a>00458                             SCMatrix::Transform = SCMatrix::NormalTransform);
<a name="l00459"></a>00459     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_transform(<a class="code" href="classsc_1_1SCMatrix.html" title="The SCMatrix class is the abstract base class for general double valued n by m matrices...">SCMatrix</a>*,<a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>*, 
<a name="l00460"></a>00460                             SCMatrix::Transform = SCMatrix::NormalTransform);
<a name="l00461"></a>00461     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_transform(<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>*,<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>*);
<a name="l00462"></a>00462     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_symmetric_outer_product(<a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>*);
<a name="l00465"></a>00465     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#b89e75520eb3eaefa2f1e0d0c1579e22" title="Return the scalar obtained by multiplying this on the left and right by v.">scalar_product</a>(<a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>* v);
<a name="l00467"></a>00467     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#d860f2c6f31f352aa1c4cf34f9bd2616" title="Return the trace.">trace</a>() = 0;
<a name="l00469"></a>00469     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#ccd7c6bb36700dda79636417b0e23ed5" title="Invert this.">invert_this</a>() = 0;
<a name="l00471"></a>00471     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#17db6b7c13a8208feb504413ecd97180" title="Return the determinant of this. this is overwritten.">determ_this</a>() = 0;
<a name="l00472"></a>00472 
<a name="l00473"></a>00473     <span class="keyword">virtual</span> <span class="keywordtype">double</span> solve_this(<a class="code" href="classsc_1_1SCVector.html" title="The SCVector class is the abstract base class for double valued vectors.">SCVector</a>*) = 0;
<a name="l00474"></a>00474     <span class="keyword">virtual</span> <span class="keywordtype">void</span> gen_invert_this() = 0;
<a name="l00475"></a>00475 
<a name="l00477"></a>00477     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#5dc4371cf8a82efe16b5ce6dce898539" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref&lt;SCElementOp&gt;</a>&amp;) = 0;
<a name="l00478"></a>00478     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#5dc4371cf8a82efe16b5ce6dce898539" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref&lt;SCElementOp2&gt;</a>&amp;,
<a name="l00479"></a>00479                             <a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>*) = 0;
<a name="l00480"></a>00480     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#5dc4371cf8a82efe16b5ce6dce898539" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref&lt;SCElementOp3&gt;</a>&amp;,
<a name="l00481"></a>00481                             <a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>*,<a class="code" href="classsc_1_1SymmSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for symmetric double valued matrices...">SymmSCMatrix</a>*) = 0;
<a name="l00483"></a>00483     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#8a335a0b026eda0745434ced02d4b3d9" title="Print out the matrix.">print</a>(std::ostream&amp;o=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>()) <span class="keyword">const</span>;
<a name="l00484"></a>00484     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SymmSCMatrix.html#8a335a0b026eda0745434ced02d4b3d9" title="Print out the matrix.">print</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* title=0,std::ostream&amp; out=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>(),
<a name="l00485"></a>00485                <span class="keywordtype">int</span> =10) <span class="keyword">const</span>;
<a name="l00486"></a>00486     <span class="keyword">virtual</span> <span class="keywordtype">void</span> vprint(<span class="keyword">const</span> <span class="keywordtype">char</span>* title=0,
<a name="l00487"></a>00487                         std::ostream&amp; out=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>(), <span class="keywordtype">int</span> =10) <span class="keyword">const</span>;
<a name="l00488"></a>00488 
<a name="l00490"></a>00490     <a class="code" href="classsc_1_1Ref.html">Ref&lt;MessageGrp&gt;</a> <a class="code" href="classsc_1_1SymmSCMatrix.html#ea20ab5914d54a7a661f3f45656b211a" title="Returns the message group used by the matrix kit.">messagegrp</a>() <span class="keyword">const</span>;
<a name="l00491"></a>00491     
<a name="l00494"></a>00494     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixSubblockIter&gt;</a> <a class="code" href="classsc_1_1SymmSCMatrix.html#6102f0d9c784d6857dc0477d2d2f4368" title="Returns iterators for the local (rapidly accessible) blocks used in this matrix.">local_blocks</a>(
<a name="l00495"></a>00495         SCMatrixSubblockIter::Access) = 0;
<a name="l00497"></a>00497     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixSubblockIter&gt;</a> <a class="code" href="classsc_1_1SymmSCMatrix.html#5f0b6d0db8b5bca20c54d266ff9f5155" title="Returns iterators for the all blocks used in this matrix.">all_blocks</a>(
<a name="l00498"></a>00498         SCMatrixSubblockIter::Access) = 0;
<a name="l00499"></a>00499 };
<a name="l00500"></a>00500 
<a name="l00503"></a><a class="code" href="classsc_1_1DiagSCMatrix.html">00503</a> <span class="keyword">class </span><a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1DescribedClass.html" title="Classes which need runtime information about themselves and their relationship to...">DescribedClass</a> {
<a name="l00504"></a>00504   <span class="keyword">protected</span>:
<a name="l00505"></a>00505     <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> d;
<a name="l00506"></a>00506     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> kit_;
<a name="l00507"></a>00507   <span class="keyword">public</span>:
<a name="l00508"></a>00508     <a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a>&amp;, <a class="code" href="classsc_1_1SCMatrixKit.html" title="The SCMatrixKit abstract class acts as a factory for producing matrices.">SCMatrixKit</a> *);
<a name="l00509"></a>00509     ~<a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>();
<a name="l00510"></a>00510 
<a name="l00512"></a><a class="code" href="classsc_1_1DiagSCMatrix.html#a980000f18334187b849153b0234faa5">00512</a>     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> <a class="code" href="classsc_1_1DiagSCMatrix.html#a980000f18334187b849153b0234faa5" title="Return the SCMatrixKit used to create this object.">kit</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> kit_; }
<a name="l00513"></a>00513 
<a name="l00515"></a>00515     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#bedd1dce3a282f502fcff34147c625f2" title="Save and restore this in an implementation independent way.">save</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&amp;);
<a name="l00516"></a>00516     <span class="keyword">virtual</span> <span class="keywordtype">void</span> restore(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;);
<a name="l00517"></a>00517 
<a name="l00519"></a>00519     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#5793fce92dfa044653b3bd9944250330" title="Return the maximum absolute value element of this vector.">maxabs</a>() <span class="keyword">const</span>;
<a name="l00521"></a>00521     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#3c29c0cce4415ee38fb89ff09ee31e99" title="Assign each element to a random number between -1 and 1.">randomize</a>();
<a name="l00523"></a><a class="code" href="classsc_1_1DiagSCMatrix.html#81eb2f9b999d03a981bc8465d9656ded">00523</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#81eb2f9b999d03a981bc8465d9656ded" title="Set all elements to val.">assign</a>(<span class="keywordtype">double</span> val) { <a class="code" href="classsc_1_1DiagSCMatrix.html#f1baf4d868f8b536d3a479446295d99c" title="Overridden to implement the assign members.">assign_val</a>(val); }
<a name="l00525"></a><a class="code" href="classsc_1_1DiagSCMatrix.html#b04b01f67fd7c0ffaacacf869dc48bcd">00525</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#b04b01f67fd7c0ffaacacf869dc48bcd" title="Assign element i, i to m[i].">assign</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>*p) { assign_p(p); }
<a name="l00528"></a><a class="code" href="classsc_1_1DiagSCMatrix.html#7c20f51ff3c37aafd7274ef97acbd620">00528</a>     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#7c20f51ff3c37aafd7274ef97acbd620" title="Make this have the same elements as m.">assign</a>(<a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>*d_a) { assign_d(d_a); }
<a name="l00530"></a>00530     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#f1baf4d868f8b536d3a479446295d99c" title="Overridden to implement the assign members.">assign_val</a>(<span class="keywordtype">double</span> val);
<a name="l00531"></a>00531     <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign_p(<span class="keyword">const</span> <span class="keywordtype">double</span>*);
<a name="l00532"></a>00532     <span class="keyword">virtual</span> <span class="keywordtype">void</span> assign_d(<a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>*);
<a name="l00534"></a>00534     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#e0b2ebaba26d35d2a613d7cb7329e378" title="Like the assign member, but this writes values to the argument.">convert</a>(<span class="keywordtype">double</span>*) <span class="keyword">const</span>;
<a name="l00537"></a>00537     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#e0b2ebaba26d35d2a613d7cb7329e378" title="Like the assign member, but this writes values to the argument.">convert</a>(<a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>*);
<a name="l00538"></a>00538     <span class="keyword">virtual</span> <span class="keywordtype">void</span> convert_accumulate(<a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>*);
<a name="l00540"></a>00540     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#616893272a4d5ec8b0c9d3729fd31e1f" title="Multiply all elements by val.">scale</a>(<span class="keywordtype">double</span>);
<a name="l00542"></a><a class="code" href="classsc_1_1DiagSCMatrix.html#dbb5dc632b90ea5fe9f560901c0664ef">00542</a>     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#dbb5dc632b90ea5fe9f560901c0664ef" title="Return the dimension.">n</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d-&gt;n(); }
<a name="l00544"></a>00544     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>* <a class="code" href="classsc_1_1DiagSCMatrix.html#5f4e24b521e42582d6e77ca5734058d9" title="Return a matrix with the same dimension and same elements.">copy</a>();
<a name="l00546"></a>00546     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>* <a class="code" href="classsc_1_1DiagSCMatrix.html#5295ac5ef594a05c04ba4408b1eab1ac" title="Return a matrix with the same dimension but uninitialized memory.">clone</a>();
<a name="l00547"></a>00547 
<a name="l00548"></a>00548     <span class="comment">// pure virtual functions</span>
<a name="l00550"></a><a class="code" href="classsc_1_1DiagSCMatrix.html#1ae7b07fd95c34edf316d04406993710">00550</a> <span class="comment"></span>    <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> <a class="code" href="classsc_1_1DiagSCMatrix.html#1ae7b07fd95c34edf316d04406993710" title="Return the dimension.">dim</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> d; }
<a name="l00552"></a>00552     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#9efcc909e09390f7899f44901338e159" title="Return or modify an element.">get_element</a>(<span class="keywordtype">int</span>) <span class="keyword">const</span> = 0;
<a name="l00553"></a>00553     <span class="keyword">virtual</span> <span class="keywordtype">void</span> set_element(<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) = 0;
<a name="l00554"></a>00554     <span class="keyword">virtual</span> <span class="keywordtype">void</span> accumulate_element(<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) = 0;
<a name="l00556"></a>00556     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#bf4d5a18ba55b7e23c3e89d358fc77eb" title="Sum m into this.">accumulate</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>* m) = 0;
<a name="l00558"></a>00558     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#54855446e8e8accb055a9644704729aa" title="Return the trace.">trace</a>() = 0;
<a name="l00560"></a>00560     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#d25454ab4dfcef086b5b2a5a1b0ed104" title="Return the determinant of this. this is overwritten.">determ_this</a>() = 0;
<a name="l00562"></a>00562     <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#4506f8fc6495dbb47ccf3c945772bebe" title="Invert this.">invert_this</a>() = 0;
<a name="l00564"></a>00564     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#742bc1d3719ac31436edcf3f27fb1147" title="Do a generalized inversion of this.">gen_invert_this</a>() = 0;
<a name="l00566"></a>00566     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#f03f569ddf34facbf6bb7640f811490a" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref&lt;SCElementOp&gt;</a>&amp;) = 0;
<a name="l00567"></a>00567     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#f03f569ddf34facbf6bb7640f811490a" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref&lt;SCElementOp2&gt;</a>&amp;,
<a name="l00568"></a>00568                             <a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>*) = 0;
<a name="l00569"></a>00569     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#f03f569ddf34facbf6bb7640f811490a" title="Perform the element operation op on each element of this.">element_op</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref&lt;SCElementOp3&gt;</a>&amp;,
<a name="l00570"></a>00570                             <a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>*,<a class="code" href="classsc_1_1DiagSCMatrix.html" title="The SymmSCMatrix class is the abstract base class for diagonal double valued matrices...">DiagSCMatrix</a>*) = 0;
<a name="l00572"></a>00572     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#d204bff41bd3fa36d469d74965b2553e" title="Print out the matrix.">print</a>(std::ostream&amp;o=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>()) <span class="keyword">const</span>;
<a name="l00573"></a>00573     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1DiagSCMatrix.html#d204bff41bd3fa36d469d74965b2553e" title="Print out the matrix.">print</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* title=0,
<a name="l00574"></a>00574                std::ostream&amp; out=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>(), <span class="keywordtype">int</span> =10) <span class="keyword">const</span>;
<a name="l00575"></a>00575     <span class="keyword">virtual</span> <span class="keywordtype">void</span> vprint(<span class="keyword">const</span> <span class="keywordtype">char</span>* title=0,
<a name="l00576"></a>00576                         std::ostream&amp; out=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>(), <span class="keywordtype">int</span> =10) <span class="keyword">const</span>;
<a name="l00577"></a>00577 
<a name="l00579"></a>00579     <a class="code" href="classsc_1_1Ref.html">Ref&lt;MessageGrp&gt;</a> <a class="code" href="classsc_1_1DiagSCMatrix.html#dc2296a29dd4abc891b6895434c720dd" title="Returns the message group used by the matrix kit.">messagegrp</a>() <span class="keyword">const</span>;
<a name="l00580"></a>00580     
<a name="l00583"></a>00583     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixSubblockIter&gt;</a> <a class="code" href="classsc_1_1DiagSCMatrix.html#fbbad3d573815a74c8d151ca11595b57" title="Returns iterators for the local (rapidly accessible) blocks used in this matrix.">local_blocks</a>(
<a name="l00584"></a>00584         SCMatrixSubblockIter::Access) = 0;
<a name="l00586"></a>00586     <span class="keyword">virtual</span> <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixSubblockIter&gt;</a> <a class="code" href="classsc_1_1DiagSCMatrix.html#25942645cab05d0582eebe31e26d9ebc" title="Returns iterators for the all blocks used in this matrix.">all_blocks</a>(
<a name="l00587"></a>00587         SCMatrixSubblockIter::Access) = 0;
<a name="l00588"></a>00588 };
<a name="l00589"></a>00589 
<a name="l00590"></a>00590 }
<a name="l00591"></a>00591 
<a name="l00592"></a>00592 <span class="preprocessor">#endif</span>
<a name="l00593"></a>00593 <span class="preprocessor"></span>
<a name="l00594"></a>00594 <span class="comment">// Local Variables:</span>
<a name="l00595"></a>00595 <span class="comment">// mode: c++</span>
<a name="l00596"></a>00596 <span class="comment">// c-file-style: "CLJ"</span>
<a name="l00597"></a>00597 <span class="comment">// End:</span>
</pre></div></div>
<hr>
<address>
<small>

Generated at Wed Oct 14 14:12:08 2009 for <a
href="http://www.mpqc.org">MPQC</a>
2.3.1 using the documentation package <a
href="http://www.doxygen.org">Doxygen</a>
1.5.9.

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