Sophie

Sophie

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

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: matrix.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>matrix.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">// matrix.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_matrix_h</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define _math_scmat_matrix_h</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#ifdef __GNUC__</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;math/scmat/abstract.h&gt;</span>
<a name="l00037"></a>00037 
<a name="l00038"></a>00038 <span class="keyword">namespace </span>sc {
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="keyword">class </span>SCVectordouble;
<a name="l00041"></a>00041 <span class="keyword">class </span>SCMatrixdouble;
<a name="l00042"></a>00042 <span class="keyword">class </span>SymmSCMatrixdouble;
<a name="l00043"></a>00043 <span class="keyword">class </span>DiagSCMatrixdouble;
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="keyword">class </span>SCMatrixBlockIter;
<a name="l00046"></a>00046 <span class="keyword">class </span>SCMatrixRectBlock;
<a name="l00047"></a>00047 <span class="keyword">class </span>SCMatrixLTriBlock;
<a name="l00048"></a>00048 <span class="keyword">class </span>SCMatrixDiagBlock;
<a name="l00049"></a>00049 <span class="keyword">class </span>SCVectorSimpleBlock;
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="keyword">class </span>RefSCMatrix;
<a name="l00052"></a>00052 <span class="keyword">class </span>RefSymmSCMatrix;
<a name="l00055"></a><a class="code" href="classsc_1_1RefSCVector.html">00055</a> <span class="keyword">class </span><a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref</a>&lt;SCVector&gt; {
<a name="l00056"></a>00056     <span class="comment">// standard overrides</span>
<a name="l00057"></a>00057   <span class="keyword">public</span>:
<a name="l00060"></a>00060     <a class="code" href="classsc_1_1RefSCVector.html#f5ce8afaffec9e11fc323abacdc2a7c2" title="Initializes the vector pointer to 0.">RefSCVector</a>();
<a name="l00062"></a>00062     <a class="code" href="classsc_1_1RefSCVector.html#f5ce8afaffec9e11fc323abacdc2a7c2" title="Initializes the vector pointer to 0.">RefSCVector</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp; v);
<a name="l00064"></a>00064     <a class="code" href="classsc_1_1RefSCVector.html#f5ce8afaffec9e11fc323abacdc2a7c2" title="Initializes the vector pointer to 0.">RefSCVector</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="l00065"></a>00065     <span class="comment">// don't allow automatic conversion from any reference to a</span>
<a name="l00066"></a>00066     <span class="comment">// described class</span>
<a name="l00067"></a>00067     ~<a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>();
<a name="l00069"></a>00069     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp; <a class="code" href="classsc_1_1RefSCVector.html#74e1ec95c0c380a3db8c31930e2c1b32" title="Make this refer to v.">operator=</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="l00071"></a>00071     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp; <a class="code" href="classsc_1_1RefSCVector.html#74e1ec95c0c380a3db8c31930e2c1b32" title="Make this refer to v.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp; v);
<a name="l00072"></a>00072 
<a name="l00073"></a>00073     <span class="comment">// vector specific members</span>
<a name="l00074"></a>00074   <span class="keyword">public</span>:
<a name="l00077"></a>00077     <a class="code" href="classsc_1_1RefSCVector.html#f5ce8afaffec9e11fc323abacdc2a7c2" title="Initializes the vector pointer to 0.">RefSCVector</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; dim,<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a>&amp;);
<a name="l00078"></a>00078 
<a name="l00080"></a>00080     SCVectordouble <a class="code" href="classsc_1_1RefSCVector.html#16cd57a63deb8f6fed988195f9c90b52" title="Return an l-value that can be used to assign or retrieve an element.">operator()</a>(<span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00082"></a>00082     SCVectordouble <a class="code" href="classsc_1_1RefSCVector.html#a6e7e079f358c0049733cec90db25bdd" title="Return an l-value that can be used to assign or retrieve an element.">operator[]</a>(<span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00084"></a>00084     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> <a class="code" href="classsc_1_1RefSCVector.html#7b00e4eac985cb50556bb7c8b042491f" title="Add two vectors.">operator+</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;a) <span class="keyword">const</span>;
<a name="l00086"></a>00086     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> <a class="code" href="classsc_1_1RefSCVector.html#0ea49385d3f68b8b70f683a1b6bf6ace" title="Subtract two vectors.">operator-</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;a) <span class="keyword">const</span>;
<a name="l00088"></a>00088     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00090"></a>00090     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1RefSCVector.html#e385db3c101ede5582162be2a5d63ffd" title="Return the outer product between this and v.">outer_product</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp; v) <span class="keyword">const</span>;
<a name="l00092"></a>00092     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a> <a class="code" href="classsc_1_1RefSCVector.html#cee86eb46d24abae46afe293a5f266da" title="The outer product of this with itself is a symmetric matrix.">symmetric_outer_product</a>() <span class="keyword">const</span>;
<a name="l00093"></a>00093 
<a name="l00094"></a>00094     <span class="keywordtype">void</span> set_element(<span class="keywordtype">int</span> i,<span class="keywordtype">double</span> val) <span class="keyword">const</span>;
<a name="l00095"></a>00095     <span class="keywordtype">void</span> accumulate_element(<span class="keywordtype">int</span> i,<span class="keywordtype">double</span> val) <span class="keyword">const</span>;
<a name="l00096"></a>00096     <span class="keywordtype">double</span> get_element(<span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00097"></a>00097     <span class="keywordtype">int</span> n() <span class="keyword">const</span>;
<a name="l00098"></a>00098     <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> dim() <span class="keyword">const</span>;
<a name="l00099"></a>00099     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> kit() <span class="keyword">const</span>;
<a name="l00100"></a>00100     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> clone() <span class="keyword">const</span>;
<a name="l00101"></a>00101     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> copy() <span class="keyword">const</span>;
<a name="l00102"></a>00102     <span class="keywordtype">double</span> maxabs() <span class="keyword">const</span>;
<a name="l00103"></a>00103     <span class="keywordtype">double</span> scalar_product(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;) <span class="keyword">const</span>;
<a name="l00104"></a>00104     <span class="keywordtype">double</span> dot(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;) <span class="keyword">const</span>;
<a name="l00105"></a>00105     <span class="keywordtype">void</span> normalize() <span class="keyword">const</span>;
<a name="l00106"></a>00106     <span class="keywordtype">void</span> randomize() <span class="keyword">const</span>;
<a name="l00107"></a>00107     <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp; v) <span class="keyword">const</span>;
<a name="l00108"></a>00108     <span class="keywordtype">void</span> assign(<span class="keywordtype">double</span> val) <span class="keyword">const</span>;
<a name="l00109"></a>00109     <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">double</span>* v) <span class="keyword">const</span>;
<a name="l00110"></a>00110     <span class="keywordtype">void</span> convert(<span class="keywordtype">double</span>*) <span class="keyword">const</span>;
<a name="l00111"></a>00111     <span class="keywordtype">void</span> scale(<span class="keywordtype">double</span> val) <span class="keyword">const</span>;
<a name="l00112"></a>00112     <span class="keywordtype">void</span> accumulate(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp; v) <span class="keyword">const</span>;
<a name="l00113"></a>00113     <span class="keywordtype">void</span> accumulate_product(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;, <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;);
<a name="l00114"></a>00114     <span class="keywordtype">void</span> accumulate_product(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;, <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;);
<a name="l00115"></a>00115     <span class="keywordtype">void</span> element_op(<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; op) <span class="keyword">const</span>;
<a name="l00116"></a>00116     <span class="keywordtype">void</span> element_op(<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="l00117"></a>00117                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;) <span class="keyword">const</span>;
<a name="l00118"></a>00118     <span class="keywordtype">void</span> element_op(<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="l00119"></a>00119                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;,
<a name="l00120"></a>00120                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;) <span class="keyword">const</span>;
<a name="l00121"></a>00121     <span class="keywordtype">void</span> print(std::ostream&amp;out) <span class="keyword">const</span>;
<a name="l00122"></a>00122     <span class="keywordtype">void</span> print(<span class="keyword">const</span> <span class="keywordtype">char</span>*title=0,
<a name="l00123"></a>00123                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> precision=10) <span class="keyword">const</span>;
<a name="l00124"></a>00124     <span class="keywordtype">void</span> save(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&amp;);
<a name="l00126"></a>00126     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RefSCVector.html#b092915c964352b4b19b85f078b675c3" title="Restores the matrix from StateIn object. The vector must have been initialized already...">restore</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;);
<a name="l00127"></a>00127 };
<a name="l00128"></a>00128 <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> operator*(<span class="keywordtype">double</span>,<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;);
<a name="l00129"></a>00129 
<a name="l00130"></a>00130 <span class="keyword">class </span><a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>;
<a name="l00131"></a>00131 <span class="keyword">class </span><a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>;
<a name="l00135"></a><a class="code" href="classsc_1_1RefSCMatrix.html">00135</a> <span class="keyword">class </span><a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref</a>&lt;SCMatrix&gt; {
<a name="l00136"></a>00136     <span class="comment">// standard overrides</span>
<a name="l00137"></a>00137   <span class="keyword">public</span>:
<a name="l00140"></a>00140     <a class="code" href="classsc_1_1RefSCMatrix.html#01fcbcef0608b674ad1a62cc9afbab7f" title="Initializes the matrix pointer to 0.">RefSCMatrix</a>();
<a name="l00142"></a>00142     <a class="code" href="classsc_1_1RefSCMatrix.html#01fcbcef0608b674ad1a62cc9afbab7f" title="Initializes the matrix pointer to 0.">RefSCMatrix</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp; m);
<a name="l00144"></a>00144      <a class="code" href="classsc_1_1RefSCMatrix.html#01fcbcef0608b674ad1a62cc9afbab7f" title="Initializes the matrix pointer to 0.">RefSCMatrix</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 name="l00145"></a>00145     ~<a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>();
<a name="l00147"></a>00147     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp; <a class="code" href="classsc_1_1RefSCMatrix.html#fd3bc0b980dd9ccf7f4f6644029a0ef6" title="Make this refer to m.">operator=</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 name="l00149"></a>00149     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp; <a class="code" href="classsc_1_1RefSCMatrix.html#fd3bc0b980dd9ccf7f4f6644029a0ef6" title="Make this refer to m.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp; m);
<a name="l00150"></a>00150 
<a name="l00151"></a>00151     <span class="comment">// matrix specific members</span>
<a name="l00152"></a>00152   <span class="keyword">public</span>:
<a name="l00155"></a>00155     <a class="code" href="classsc_1_1RefSCMatrix.html#01fcbcef0608b674ad1a62cc9afbab7f" title="Initializes the matrix pointer to 0.">RefSCMatrix</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; d1,<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; d2,
<a name="l00156"></a>00156                 <span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a>&amp;);
<a name="l00157"></a>00157 
<a name="l00159"></a>00159     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;) <span class="keyword">const</span>;
<a name="l00160"></a>00160 
<a name="l00162"></a>00162     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00163"></a>00163     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00164"></a>00164     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00165"></a>00165 
<a name="l00167"></a>00167     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00168"></a>00168 
<a name="l00170"></a>00170     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1RefSCMatrix.html#4746784e29c32af8380bfc4eb2f41337" title="Matrix addition.">operator+</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00172"></a>00172     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1RefSCMatrix.html#d8b0719c03472b2e2c7304e2d2d73734" title="Matrix subtraction.">operator-</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00173"></a>00173 
<a name="l00175"></a>00175     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1RefSCMatrix.html#ac4909b5c59095c72a17e4adcbdeae79" title="Return the transpose of this.">t</a>() <span class="keyword">const</span>;
<a name="l00177"></a>00177     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1RefSCMatrix.html#81c16e6a31a7bf3b903a435674b942ea" title="Return the inverse of this.">i</a>() <span class="keyword">const</span>;
<a name="l00179"></a>00179     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1RefSCMatrix.html#f3661298852fd8b9822ebbfdb9e3fa16" title="Return the generalized inverse of this.">gi</a>() <span class="keyword">const</span>;
<a name="l00180"></a>00180 
<a name="l00183"></a>00183     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1RefSCMatrix.html#fe33e0f9da34db602118776665d014ab" title="These call the SCMatrix members of the same name after checking for references to...">clone</a>() <span class="keyword">const</span>;
<a name="l00184"></a>00184     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> copy() <span class="keyword">const</span>;
<a name="l00185"></a>00185 
<a name="l00186"></a>00186     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> get_subblock(<span class="keywordtype">int</span> br, <span class="keywordtype">int</span> er, <span class="keywordtype">int</span> bc, <span class="keywordtype">int</span> ec);
<a name="l00187"></a>00187     <span class="keywordtype">void</span> assign_subblock(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;, <span class="keywordtype">int</span> br, <span class="keywordtype">int</span> er, <span class="keywordtype">int</span> bc, <span class="keywordtype">int</span> ec,
<a name="l00188"></a>00188                          <span class="keywordtype">int</span> source_br = 0, <span class="keywordtype">int</span> source_bc = 0);
<a name="l00189"></a>00189     <span class="keywordtype">void</span> accumulate_subblock(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>,
<a name="l00190"></a>00190                              <span class="keywordtype">int</span> source_br = 0, <span class="keywordtype">int</span> source_bc = 0);
<a name="l00191"></a>00191     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> get_row(<span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00192"></a>00192     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> get_column(<span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00193"></a>00193     <span class="keywordtype">void</span> assign_row(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;, <span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00194"></a>00194     <span class="keywordtype">void</span> assign_column(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;, <span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00195"></a>00195     <span class="keywordtype">void</span> accumulate_row(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;, <span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00196"></a>00196     <span class="keywordtype">void</span> accumulate_column(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;, <span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00197"></a>00197 
<a name="l00198"></a>00198     <span class="keywordtype">void</span> accumulate_outer_product(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;,<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;) <span class="keyword">const</span>;
<a name="l00199"></a>00199     <span class="keywordtype">void</span> accumulate_product(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;,<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00200"></a>00200     <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00201"></a>00201     <span class="keywordtype">void</span> scale(<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00202"></a>00202     <span class="keywordtype">void</span> randomize() <span class="keyword">const</span>;
<a name="l00203"></a>00203     <span class="keywordtype">void</span> assign(<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00204"></a>00204     <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">double</span>*) <span class="keyword">const</span>;
<a name="l00205"></a>00205     <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">double</span>**) <span class="keyword">const</span>;
<a name="l00206"></a>00206     <span class="keywordtype">void</span> convert(<span class="keywordtype">double</span>*) <span class="keyword">const</span>;
<a name="l00207"></a>00207     <span class="keywordtype">void</span> convert(<span class="keywordtype">double</span>**) <span class="keyword">const</span>;
<a name="l00208"></a>00208     <span class="keywordtype">void</span> accumulate(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00209"></a>00209     <span class="keywordtype">void</span> accumulate(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00210"></a>00210     <span class="keywordtype">void</span> accumulate(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00211"></a>00211     <span class="keywordtype">void</span> element_op(<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;) <span class="keyword">const</span>;
<a name="l00212"></a>00212     <span class="keywordtype">void</span> element_op(<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="l00213"></a>00213                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00214"></a>00214     <span class="keywordtype">void</span> element_op(<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="l00215"></a>00215                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;,
<a name="l00216"></a>00216                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00217"></a>00217     <span class="keywordtype">int</span> nrow() <span class="keyword">const</span>;
<a name="l00218"></a>00218     <span class="keywordtype">int</span> ncol() <span class="keyword">const</span>;
<a name="l00219"></a>00219     <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> rowdim() <span class="keyword">const</span>;
<a name="l00220"></a>00220     <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>;
<a name="l00221"></a>00221     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> kit() <span class="keyword">const</span>;
<a name="l00222"></a>00222     <span class="keywordtype">void</span> set_element(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00223"></a>00223     <span class="keywordtype">void</span> accumulate_element(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00224"></a>00224     <span class="keywordtype">double</span> get_element(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00225"></a>00225     <span class="keywordtype">void</span> print(std::ostream&amp;) <span class="keyword">const</span>;
<a name="l00226"></a>00226     <span class="keywordtype">void</span> print(<span class="keyword">const</span> <span class="keywordtype">char</span>*title=0,
<a name="l00227"></a>00227                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="l00228"></a>00228     <span class="keywordtype">double</span> trace() <span class="keyword">const</span>;
<a name="l00229"></a>00229     <span class="keywordtype">void</span> save(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&amp;);
<a name="l00231"></a>00231     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RefSCMatrix.html#7743d76caf6d56f8cd068d017c4a7b2a" title="Restores the matrix from StateIn object. The matrix must have been initialized already...">restore</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;);
<a name="l00232"></a>00232 
<a name="l00237"></a>00237     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RefSCMatrix.html#0adeddea07889116f042d978a0568b73" title="Compute the singular value decomposition, this = U sigma V.t().">svd</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> &amp;U,
<a name="l00238"></a>00238              <span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> &amp;sigma,
<a name="l00239"></a>00239              <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> &amp;V);
<a name="l00241"></a>00241     <span class="keywordtype">double</span> <a class="code" href="classsc_1_1RefSCMatrix.html#fec41e8ae5366a4929266de882f64b78" title="Solves this x = v.">solve_lin</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp; v) <span class="keyword">const</span>;
<a name="l00243"></a>00243     <span class="keywordtype">double</span> <a class="code" href="classsc_1_1RefSCMatrix.html#fcacfa29202fdf91936f0ed4887d8d34" title="Returns the determinant of the referenced matrix.">determ</a>() <span class="keyword">const</span>;
<a name="l00245"></a>00245     SCMatrixdouble <a class="code" href="classsc_1_1RefSCMatrix.html#87917faa536de83d7d8d6ce25fde7f87" title="Assign and examine matrix elements.">operator()</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j) <span class="keyword">const</span>;
<a name="l00246"></a>00246 
<a name="l00250"></a>00250     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RefSCMatrix.html#294c3c49a5710a97ea9782c2eaa28024" title="If this matrix is blocked return the number of blocks.">nblock</a>() <span class="keyword">const</span>;
<a name="l00254"></a>00254     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1RefSCMatrix.html#d8a50c51a2374122fd67731f0ba85391" title="If this matrix is blocked return block i.">block</a>(<span class="keywordtype">int</span> i) <span class="keyword">const</span>;
<a name="l00255"></a>00255 };
<a name="l00257"></a>00257 <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> operator*(<span class="keywordtype">double</span>,<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;);
<a name="l00258"></a>00258 
<a name="l00261"></a><a class="code" href="classsc_1_1RefSymmSCMatrix.html">00261</a> <span class="keyword">class </span><a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref</a>&lt;SymmSCMatrix&gt; {
<a name="l00262"></a>00262     <span class="comment">// standard overrides</span>
<a name="l00263"></a>00263   <span class="keyword">public</span>:
<a name="l00266"></a>00266     <a class="code" href="classsc_1_1RefSymmSCMatrix.html#531c9a2851097e7b94a9153996653495" title="Initializes the matrix pointer to 0.">RefSymmSCMatrix</a>();
<a name="l00268"></a>00268     <a class="code" href="classsc_1_1RefSymmSCMatrix.html#531c9a2851097e7b94a9153996653495" title="Initializes the matrix pointer to 0.">RefSymmSCMatrix</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp; m);
<a name="l00270"></a>00270     <a class="code" href="classsc_1_1RefSymmSCMatrix.html#531c9a2851097e7b94a9153996653495" title="Initializes the matrix pointer to 0.">RefSymmSCMatrix</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 name="l00271"></a>00271     ~<a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>();
<a name="l00273"></a>00273     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp; <a class="code" href="classsc_1_1RefSymmSCMatrix.html#29d3d871f16eb47c2e67b17fa45b72d8" title="Make this refer to m.">operator=</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 name="l00275"></a>00275     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp; <a class="code" href="classsc_1_1RefSymmSCMatrix.html#29d3d871f16eb47c2e67b17fa45b72d8" title="Make this refer to m.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp; m);
<a name="l00276"></a>00276 
<a name="l00277"></a>00277     <span class="comment">// matrix specific members</span>
<a name="l00278"></a>00278   <span class="keyword">public</span>:
<a name="l00281"></a>00281     <a class="code" href="classsc_1_1RefSymmSCMatrix.html#531c9a2851097e7b94a9153996653495" title="Initializes the matrix pointer to 0.">RefSymmSCMatrix</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; d,<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a>&amp;);
<a name="l00283"></a>00283     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00284"></a>00284     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00286"></a>00286     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;a) <span class="keyword">const</span>;
<a name="l00287"></a>00287     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00289"></a>00289     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#42b443227c90872e8ec1521ec58e4d14" title="Matrix addition and subtraction.">operator+</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00290"></a>00290     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a> operator-(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00292"></a>00292     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#167b2fc80b9e3495bbe6b2e506541c6d" title="Return the inverse of this.">i</a>() <span class="keyword">const</span>;
<a name="l00294"></a>00294     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#616356025d431b6431176d322bc39d8e" title="Return the generalized inverse of this.">gi</a>() <span class="keyword">const</span>;
<a name="l00297"></a>00297     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#1f35d86617faefc68f88aa6039c5e21a" title="These call the SCMatrix members of the same name after checking for references to...">clone</a>() <span class="keyword">const</span>;
<a name="l00298"></a>00298     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a> copy() <span class="keyword">const</span>;
<a name="l00299"></a>00299     <span class="keywordtype">void</span> set_element(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00300"></a>00300     <span class="keywordtype">void</span> accumulate_element(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00301"></a>00301     <span class="keywordtype">double</span> get_element(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00302"></a>00302 
<a name="l00303"></a>00303     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> get_subblock(<span class="keywordtype">int</span> br, <span class="keywordtype">int</span> er, <span class="keywordtype">int</span> bc, <span class="keywordtype">int</span> ec);
<a name="l00304"></a>00304     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a> get_subblock(<span class="keywordtype">int</span> br, <span class="keywordtype">int</span> er);
<a name="l00305"></a>00305     <span class="keywordtype">void</span> assign_subblock(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;, <span class="keywordtype">int</span> br, <span class="keywordtype">int</span> er, <span class="keywordtype">int</span> bc, <span class="keywordtype">int</span> ec);
<a name="l00306"></a>00306     <span class="keywordtype">void</span> assign_subblock(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;, <span class="keywordtype">int</span> br, <span class="keywordtype">int</span> er);
<a name="l00307"></a>00307     <span class="keywordtype">void</span> accumulate_subblock(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>);
<a name="l00308"></a>00308     <span class="keywordtype">void</span> accumulate_subblock(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;, <span class="keywordtype">int</span>, <span class="keywordtype">int</span>);
<a name="l00309"></a>00309     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> get_row(<span class="keywordtype">int</span>);
<a name="l00310"></a>00310     <span class="keywordtype">void</span> assign_row(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;, <span class="keywordtype">int</span>);
<a name="l00311"></a>00311     <span class="keywordtype">void</span> accumulate_row(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;, <span class="keywordtype">int</span>);
<a name="l00312"></a>00312 
<a name="l00313"></a>00313     <span class="keywordtype">void</span> accumulate_symmetric_outer_product(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;) <span class="keyword">const</span>;
<a name="l00314"></a>00314     <span class="keywordtype">double</span> scalar_product(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;) <span class="keyword">const</span>;
<a name="l00315"></a>00315     <span class="keywordtype">void</span> accumulate_symmetric_product(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00316"></a>00316     <span class="keywordtype">void</span> accumulate_symmetric_sum(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00318"></a>00318     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#2bc02407c3011455c5ae75c72a01850d" title="Add a * b * a.t() to this.">accumulate_transform</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;a,<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;b,
<a name="l00319"></a>00319                         SCMatrix::Transform = SCMatrix::NormalTransform) <span class="keyword">const</span>;
<a name="l00320"></a>00320     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#2bc02407c3011455c5ae75c72a01850d" title="Add a * b * a.t() to this.">accumulate_transform</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;a,<span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp;b,
<a name="l00321"></a>00321                         SCMatrix::Transform = SCMatrix::NormalTransform) <span class="keyword">const</span>;
<a name="l00322"></a>00322     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#2bc02407c3011455c5ae75c72a01850d" title="Add a * b * a.t() to this.">accumulate_transform</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;a,
<a name="l00323"></a>00323                               <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;b) <span class="keyword">const</span>;
<a name="l00324"></a>00324 
<a name="l00325"></a>00325     <span class="keywordtype">void</span> randomize() <span class="keyword">const</span>;
<a name="l00326"></a>00326     <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00327"></a>00327     <span class="keywordtype">void</span> scale(<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00328"></a>00328     <span class="keywordtype">void</span> assign(<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00329"></a>00329     <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">double</span>*) <span class="keyword">const</span>;
<a name="l00330"></a>00330     <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">double</span>**) <span class="keyword">const</span>;
<a name="l00331"></a>00331     <span class="keywordtype">void</span> convert(<span class="keywordtype">double</span>*) <span class="keyword">const</span>;
<a name="l00332"></a>00332     <span class="keywordtype">void</span> convert(<span class="keywordtype">double</span>**) <span class="keyword">const</span>;
<a name="l00333"></a>00333     <span class="keywordtype">void</span> accumulate(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00334"></a>00334     <span class="keywordtype">void</span> element_op(<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;) <span class="keyword">const</span>;
<a name="l00335"></a>00335     <span class="keywordtype">void</span> element_op(<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="l00336"></a>00336                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00337"></a>00337     <span class="keywordtype">void</span> element_op(<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="l00338"></a>00338                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;,
<a name="l00339"></a>00339                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00340"></a>00340     <span class="keywordtype">double</span> trace() <span class="keyword">const</span>;
<a name="l00341"></a>00341     <span class="keywordtype">int</span> n() <span class="keyword">const</span>;
<a name="l00342"></a>00342     <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> dim() <span class="keyword">const</span>;
<a name="l00343"></a>00343     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> kit() <span class="keyword">const</span>;
<a name="l00344"></a>00344     <span class="keywordtype">void</span> print(std::ostream&amp;) <span class="keyword">const</span>;
<a name="l00345"></a>00345     <span class="keywordtype">void</span> print(<span class="keyword">const</span> <span class="keywordtype">char</span>*title=0,
<a name="l00346"></a>00346                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="l00347"></a>00347     <span class="keywordtype">void</span> save(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&amp;);
<a name="l00349"></a>00349     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#d7abbd0f4d02058196ec88bac80298f5" title="Restores the matrix from StateIn object. The matrix must have been initialized already...">restore</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;);
<a name="l00350"></a>00350 
<a name="l00352"></a>00352     <span class="keywordtype">double</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#9429052e0f3349e46c0b52dd9d47980a" title="Solves this x = v.">solve_lin</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>&amp;) <span class="keyword">const</span>;
<a name="l00354"></a>00354     <span class="keywordtype">double</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#ea34f503c309a7cd2231a8f253c51da3" title="Returns the determinant of the referenced matrix.">determ</a>() <span class="keyword">const</span>;
<a name="l00356"></a>00356     <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#121492749b970590a934d6841824ed2b" title="Returns the eigenvalues of the reference matrix.">eigvals</a>() <span class="keyword">const</span>;
<a name="l00358"></a>00358     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#1f6565ad90f35cebae2d51c0d78ef716" title="Returns the eigenvectors of the reference matrix.">eigvecs</a>() <span class="keyword">const</span>;
<a name="l00362"></a>00362     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#d036dfb412ce350e8d141b05749fd64f" title="Sets eigvals to the eigenvalues and eigvecs to the eigenvalues and eigenvectors of...">diagonalize</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp; eigvals,
<a name="l00363"></a>00363                      <span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp; eigvecs) <span class="keyword">const</span>;
<a name="l00365"></a>00365     SymmSCMatrixdouble <a class="code" href="classsc_1_1RefSymmSCMatrix.html#a83c5999b0f4e4696c0e24056b10b734" title="Assign and examine matrix elements.">operator()</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j) <span class="keyword">const</span>;
<a name="l00369"></a>00369     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#e70d585d3ffc6ed829a5a902e343de8a" title="If this matrix is blocked return the number of blocks.">nblock</a>() <span class="keyword">const</span>;
<a name="l00373"></a>00373     <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a> <a class="code" href="classsc_1_1RefSymmSCMatrix.html#4df5711968481645b3346c9695b7d865" title="If this matrix is blocked return block i.">block</a>(<span class="keywordtype">int</span> i) <span class="keyword">const</span>;
<a name="l00374"></a>00374 };
<a name="l00376"></a>00376 <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a> operator*(<span class="keywordtype">double</span>,<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSymmSCMatrix.html" title="The RefSymmSCMatrix class is a smart pointer to an SCSymmSCMatrix specialization...">RefSymmSCMatrix</a>&amp;);
<a name="l00377"></a>00377 
<a name="l00380"></a><a class="code" href="classsc_1_1RefDiagSCMatrix.html">00380</a> <span class="keyword">class </span><a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref</a>&lt;DiagSCMatrix&gt; {
<a name="l00381"></a>00381     <span class="comment">// standard overrides</span>
<a name="l00382"></a>00382   <span class="keyword">public</span>:
<a name="l00385"></a>00385     <a class="code" href="classsc_1_1RefDiagSCMatrix.html#1e5a1633426630fb8b30fb082696c23f" title="Initializes the matrix pointer to 0.">RefDiagSCMatrix</a>();
<a name="l00387"></a>00387     <a class="code" href="classsc_1_1RefDiagSCMatrix.html#1e5a1633426630fb8b30fb082696c23f" title="Initializes the matrix pointer to 0.">RefDiagSCMatrix</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp; m);
<a name="l00389"></a>00389     <a class="code" href="classsc_1_1RefDiagSCMatrix.html#1e5a1633426630fb8b30fb082696c23f" title="Initializes the matrix pointer to 0.">RefDiagSCMatrix</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> *m);
<a name="l00390"></a>00390     ~<a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>();
<a name="l00392"></a>00392     <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp; <a class="code" href="classsc_1_1RefDiagSCMatrix.html#66ecc8630eb547462285a7e4493f81fb" title="Make this refer to m.">operator=</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>* m);
<a name="l00394"></a>00394     <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp; <a class="code" href="classsc_1_1RefDiagSCMatrix.html#66ecc8630eb547462285a7e4493f81fb" title="Make this refer to m.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> &amp; m);
<a name="l00395"></a>00395 
<a name="l00396"></a>00396     <span class="comment">// matrix specific members</span>
<a name="l00397"></a>00397   <span class="keyword">public</span>:
<a name="l00400"></a>00400     <a class="code" href="classsc_1_1RefDiagSCMatrix.html#1e5a1633426630fb8b30fb082696c23f" title="Initializes the matrix pointer to 0.">RefDiagSCMatrix</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_1Ref.html">Ref&lt;SCMatrixKit&gt;</a>&amp;);
<a name="l00402"></a>00402     <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefSCMatrix.html" title="The RefSCMatrix class is a smart pointer to an SCMatrix specialization.">RefSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00403"></a>00403     <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> <a class="code" href="classsc_1_1Ref.html#525a11b03e7d697a53196e4e519c9880" title="Returns a C++ reference to the reference counted object.">operator*</a>(<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00405"></a>00405     <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> <a class="code" href="classsc_1_1RefDiagSCMatrix.html#4bf0d968ef001230d26a29ea4e04d162" title="Matrix addition and subtraction.">operator+</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00406"></a>00406     <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> operator-(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00408"></a>00408     <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> <a class="code" href="classsc_1_1RefDiagSCMatrix.html#52cf29b94446c619db123312ae2afa9d" title="Return the inverse of this.">i</a>() <span class="keyword">const</span>;
<a name="l00410"></a>00410     <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> <a class="code" href="classsc_1_1RefDiagSCMatrix.html#d2e66afee1abef813e7ac092bdece44f" title="Return the generalized inverse of this.">gi</a>() <span class="keyword">const</span>;
<a name="l00413"></a>00413     <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> <a class="code" href="classsc_1_1RefDiagSCMatrix.html#9a56a6ef1ddccfa81a118ce5a1ed54e4" title="These call the SCMatrix members of the same name after checking for references to...">clone</a>() <span class="keyword">const</span>;
<a name="l00414"></a>00414     <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> copy() <span class="keyword">const</span>;
<a name="l00415"></a>00415     <span class="keywordtype">void</span> set_element(<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00416"></a>00416     <span class="keywordtype">void</span> accumulate_element(<span class="keywordtype">int</span>,<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00417"></a>00417     <span class="keywordtype">double</span> get_element(<span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00418"></a>00418     <span class="keywordtype">void</span> randomize() <span class="keyword">const</span>;
<a name="l00419"></a>00419     <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00420"></a>00420     <span class="keywordtype">void</span> scale(<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00421"></a>00421     <span class="keywordtype">void</span> assign(<span class="keywordtype">double</span>) <span class="keyword">const</span>;
<a name="l00422"></a>00422     <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">double</span>*) <span class="keyword">const</span>;
<a name="l00423"></a>00423     <span class="keywordtype">void</span> convert(<span class="keywordtype">double</span>*) <span class="keyword">const</span>;
<a name="l00424"></a>00424     <span class="keywordtype">void</span> accumulate(<span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00425"></a>00425     <span class="keywordtype">void</span> element_op(<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;) <span class="keyword">const</span>;
<a name="l00426"></a>00426     <span class="keywordtype">void</span> element_op(<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="l00427"></a>00427                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00428"></a>00428     <span class="keywordtype">void</span> element_op(<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="l00429"></a>00429                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp;,
<a name="l00430"></a>00430                     <span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp;) <span class="keyword">const</span>;
<a name="l00431"></a>00431     <span class="keywordtype">int</span> n() <span class="keyword">const</span>;
<a name="l00432"></a>00432     <a class="code" href="classsc_1_1RefSCDimension.html" title="The RefSCDimension class is a smart pointer to an SCDimension specialization.">RefSCDimension</a> dim() <span class="keyword">const</span>;
<a name="l00433"></a>00433     <a class="code" href="classsc_1_1Ref.html">Ref&lt;SCMatrixKit&gt;</a> kit() <span class="keyword">const</span>;
<a name="l00434"></a>00434     <span class="keywordtype">double</span> trace() <span class="keyword">const</span>;
<a name="l00435"></a>00435     <span class="keywordtype">void</span> print(std::ostream&amp;) <span class="keyword">const</span>;
<a name="l00436"></a>00436     <span class="keywordtype">void</span> print(<span class="keyword">const</span> <span class="keywordtype">char</span>*title=0,
<a name="l00437"></a>00437                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="l00438"></a>00438     <span class="keywordtype">void</span> save(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&amp;);
<a name="l00440"></a>00440     <span class="keywordtype">void</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html#d1a0e0fc6023bd267c4b1a33461e4f6f" title="Restores the matrix from StateIn object. The matrix must have been initialized already...">restore</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&amp;);
<a name="l00442"></a>00442     <span class="keywordtype">double</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html#5c02a2e6a06c5329230c44a2a16e81e6" title="Returns the determinant of the referenced matrix.">determ</a>() <span class="keyword">const</span>;
<a name="l00444"></a>00444     DiagSCMatrixdouble <a class="code" href="classsc_1_1RefDiagSCMatrix.html#d140383f8389d6ccb16f5a3fb370121f" title="Assign and examine matrix elements.">operator()</a>(<span class="keywordtype">int</span> i) <span class="keyword">const</span>;
<a name="l00448"></a>00448     <span class="keywordtype">int</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html#9062d34ffafd07d307653fae14648c48" title="If this matrix is blocked return the number of blocks.">nblock</a>() <span class="keyword">const</span>;
<a name="l00452"></a>00452     <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> <a class="code" href="classsc_1_1RefDiagSCMatrix.html#ae6d8f193969cdb4f29b440e738b66f5" title="If this matrix is blocked return block i.">block</a>(<span class="keywordtype">int</span> i) <span class="keyword">const</span>;
<a name="l00453"></a>00453 };
<a name="l00455"></a>00455 <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a> operator*(<span class="keywordtype">double</span>,<span class="keyword">const</span> <a class="code" href="classsc_1_1RefDiagSCMatrix.html" title="The RefDiagSCMatrix class is a smart pointer to an DiagSCMatrix specialization.">RefDiagSCMatrix</a>&amp;);
<a name="l00456"></a>00456 
<a name="l00457"></a>00457 <span class="keyword">class </span>SCVectordouble {
<a name="l00458"></a>00458    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a>;
<a name="l00459"></a>00459   <span class="keyword">private</span>:
<a name="l00460"></a>00460     <a class="code" href="classsc_1_1RefSCVector.html" title="The RefSCVector class is a smart pointer to an SCVector specialization.">RefSCVector</a> vector;
<a name="l00461"></a>00461     <span class="keywordtype">int</span> i;
<a name="l00462"></a>00462     
<a name="l00463"></a>00463     SCVectordouble(<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="keywordtype">int</span>);
<a name="l00464"></a>00464   <span class="keyword">public</span>:
<a name="l00465"></a>00465     SCVectordouble(<span class="keyword">const</span> SCVectordouble&amp;);
<a name="l00466"></a>00466     ~SCVectordouble();
<a name="l00467"></a>00467     <span class="keywordtype">double</span> operator=(<span class="keywordtype">double</span> a);
<a name="l00468"></a>00468     <span class="keywordtype">double</span> operator=(<span class="keyword">const</span> SCVectordouble&amp;);
<a name="l00469"></a>00469     operator double();
<a name="l00470"></a>00470     <span class="keywordtype">double</span> val() <span class="keyword">const</span>;
<a name="l00471"></a>00471 };
<a name="l00472"></a>00472 
<a name="l00473"></a>00473 <span class="keyword">class </span>SCMatrixdouble {
<a name="l00474"></a>00474    <span class="keyword">friend</span> <span class="keyword">class </span>RefSCMatrix;
<a name="l00475"></a>00475   <span class="keyword">private</span>:
<a name="l00476"></a>00476     RefSCMatrix matrix;
<a name="l00477"></a>00477     <span class="keywordtype">int</span> i;
<a name="l00478"></a>00478     <span class="keywordtype">int</span> j;
<a name="l00479"></a>00479     
<a name="l00480"></a>00480     SCMatrixdouble(SCMatrix*,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>);
<a name="l00481"></a>00481   <span class="keyword">public</span>:
<a name="l00482"></a>00482     SCMatrixdouble(<span class="keyword">const</span> SCMatrixdouble&amp;);
<a name="l00483"></a>00483     ~SCMatrixdouble();
<a name="l00484"></a>00484     <span class="keywordtype">double</span> operator=(<span class="keywordtype">double</span> a);
<a name="l00485"></a>00485     <span class="keywordtype">double</span> operator=(<span class="keyword">const</span> SCMatrixdouble&amp;);
<a name="l00486"></a>00486     operator double();
<a name="l00487"></a>00487     <span class="keywordtype">double</span> val() <span class="keyword">const</span>;
<a name="l00488"></a>00488 };
<a name="l00489"></a>00489 
<a name="l00490"></a>00490 <span class="keyword">class </span>SymmSCMatrixdouble {
<a name="l00491"></a>00491    <span class="keyword">friend</span> <span class="keyword">class </span>RefSymmSCMatrix;
<a name="l00492"></a>00492   <span class="keyword">private</span>:
<a name="l00493"></a>00493     RefSymmSCMatrix matrix;
<a name="l00494"></a>00494     <span class="keywordtype">int</span> i;
<a name="l00495"></a>00495     <span class="keywordtype">int</span> j;
<a name="l00496"></a>00496     
<a name="l00497"></a>00497     SymmSCMatrixdouble(SymmSCMatrix*,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>);
<a name="l00498"></a>00498   <span class="keyword">public</span>:
<a name="l00499"></a>00499     SymmSCMatrixdouble(<span class="keyword">const</span> SCMatrixdouble&amp;);
<a name="l00500"></a>00500     ~SymmSCMatrixdouble();
<a name="l00501"></a>00501     <span class="keywordtype">double</span> operator=(<span class="keywordtype">double</span> a);
<a name="l00502"></a>00502     <span class="keywordtype">double</span> operator=(<span class="keyword">const</span> SymmSCMatrixdouble&amp;);
<a name="l00503"></a>00503     operator double();
<a name="l00504"></a>00504     <span class="keywordtype">double</span> val() <span class="keyword">const</span>;
<a name="l00505"></a>00505 };
<a name="l00506"></a>00506 
<a name="l00507"></a>00507 <span class="keyword">class </span>DiagSCMatrixdouble {
<a name="l00508"></a>00508    <span class="keyword">friend</span> <span class="keyword">class </span>RefDiagSCMatrix;
<a name="l00509"></a>00509   <span class="keyword">private</span>:
<a name="l00510"></a>00510     RefDiagSCMatrix matrix;
<a name="l00511"></a>00511     <span class="keywordtype">int</span> i;
<a name="l00512"></a>00512     <span class="keywordtype">int</span> j;
<a name="l00513"></a>00513     
<a name="l00514"></a>00514     DiagSCMatrixdouble(DiagSCMatrix*,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>);
<a name="l00515"></a>00515   <span class="keyword">public</span>:
<a name="l00516"></a>00516     DiagSCMatrixdouble(<span class="keyword">const</span> SCMatrixdouble&amp;);
<a name="l00517"></a>00517     ~DiagSCMatrixdouble();
<a name="l00518"></a>00518     <span class="keywordtype">double</span> operator=(<span class="keywordtype">double</span> a);
<a name="l00519"></a>00519     <span class="keywordtype">double</span> operator=(<span class="keyword">const</span> DiagSCMatrixdouble&amp;);
<a name="l00520"></a>00520     operator double();
<a name="l00521"></a>00521     <span class="keywordtype">double</span> val() <span class="keyword">const</span>;
<a name="l00522"></a>00522 };
<a name="l00523"></a>00523 
<a name="l00524"></a>00524 }
<a name="l00525"></a>00525 
<a name="l00526"></a>00526 <span class="preprocessor">#ifdef INLINE_FUNCTIONS</span>
<a name="l00527"></a>00527 <span class="preprocessor"></span><span class="preprocessor">#include &lt;math/scmat/matrix_i.h&gt;</span>
<a name="l00528"></a>00528 <span class="preprocessor">#endif</span>
<a name="l00529"></a>00529 <span class="preprocessor"></span>
<a name="l00530"></a>00530 <span class="preprocessor">#endif</span>
<a name="l00531"></a>00531 <span class="preprocessor"></span>
<a name="l00532"></a>00532 <span class="comment">// Local Variables:</span>
<a name="l00533"></a>00533 <span class="comment">// mode: c++</span>
<a name="l00534"></a>00534 <span class="comment">// c-file-style: "CLJ"</span>
<a name="l00535"></a>00535 <span class="comment">// End:</span>
</pre></div></div>
<hr>
<address>
<small>

Generated at Wed Oct 14 14:12:10 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>