<!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: block.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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> </ul> </div> <h1>block.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">// block.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 <cljanss@limitpt.com></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_block_h</span> <a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define _math_scmat_block_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 <util/state/state.h></span> <a name="l00036"></a>00036 <a name="l00037"></a>00037 <span class="keyword">namespace </span>sc { <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keyword">class </span>SCElementOp; <a name="l00040"></a>00040 <span class="keyword">class </span>SCElementOp2; <a name="l00041"></a>00041 <span class="keyword">class </span>SCElementOp3; <a name="l00042"></a>00042 <a name="l00045"></a><a class="code" href="classsc_1_1SCMatrixBlock.html">00045</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1SavableState.html" title="Base class for objects that can save/restore state.">SavableState</a> { <a name="l00046"></a>00046 <span class="keyword">public</span>: <a name="l00047"></a>00047 <span class="keywordtype">int</span> blocki, blockj; <a name="l00048"></a>00048 <span class="keyword">public</span>: <a name="l00049"></a>00049 <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>(); <a name="l00050"></a>00050 <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&s); <a name="l00051"></a>00051 <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>(); <a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrixBlock.html#ffdd5a3bf3b700083a02c2c4a95395ac" title="Save the base classes (with save_data_state) and the members in the same order that...">save_data_state</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&s); <a name="l00053"></a>00053 <a name="l00057"></a>00057 <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> *<a class="code" href="classsc_1_1SCMatrixBlock.html#2aec95478d8f748d21682f1a234897a0" title="Return of copy of this.">deepcopy</a>() <span class="keyword">const</span>; <a name="l00058"></a>00058 <a name="l00063"></a>00063 <span class="keyword">virtual</span> <span class="keywordtype">double</span> *<a class="code" href="classsc_1_1SCMatrixBlock.html#c6601cf7d328c55a7302084dd07bcb79" title="Return a pointer to the block&#39;s data and the number of elements in the block...">dat</a>(); <a name="l00064"></a>00064 <span class="keyword">virtual</span> <span class="keywordtype">int</span> ndat() <span class="keyword">const</span>; <a name="l00065"></a>00065 <a name="l00066"></a>00066 <span class="comment">// These routines are obsolete.</span> <a name="l00067"></a>00067 <span class="keyword">virtual</span> <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp.html" title="Objects of class SCElementOp are used to perform operations on the elements of matrices...">SCElementOp</a>*) = 0; <a name="l00068"></a>00068 <span class="keyword">virtual</span> <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp2.html" title="The SCElementOp2 class is very similar to the SCElementOp class except that pairs...">SCElementOp2</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*) = 0; <a name="l00069"></a>00069 <span class="keyword">virtual</span> <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp3.html" title="The SCElementOp3 class is very similar to the SCElementOp class except that a triplet...">SCElementOp3</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*) = 0; <a name="l00070"></a>00070 }; <a name="l00071"></a>00071 <a name="l00072"></a>00072 <a name="l00073"></a>00073 <span class="keyword">class </span>SCMatrixBlockListLink { <a name="l00074"></a>00074 <span class="keyword">private</span>: <a name="l00075"></a>00075 <span class="keywordtype">void</span> operator = (<span class="keyword">const</span> SCMatrixBlockListLink&) {} <span class="comment">// disallowed</span> <a name="l00076"></a>00076 SCMatrixBlock* _block; <a name="l00077"></a>00077 SCMatrixBlockListLink* _next; <a name="l00078"></a>00078 <span class="keyword">public</span>: <a name="l00079"></a>00079 SCMatrixBlockListLink(SCMatrixBlock*, SCMatrixBlockListLink* = 0); <a name="l00080"></a>00080 ~SCMatrixBlockListLink(); <a name="l00081"></a>00081 <span class="keywordtype">void</span> block(SCMatrixBlock*); <a name="l00082"></a>00082 <span class="keywordtype">void</span> next(SCMatrixBlockListLink* link) { _next = link; } <a name="l00083"></a>00083 SCMatrixBlock* block() { <span class="keywordflow">return</span> _block; } <a name="l00084"></a>00084 SCMatrixBlockListLink* next() { <span class="keywordflow">return</span> _next; } <a name="l00085"></a>00085 }; <a name="l00086"></a>00086 <a name="l00087"></a>00087 <span class="keyword">class </span>SCMatrixBlockListIter { <a name="l00088"></a>00088 <span class="keyword">private</span>: <a name="l00089"></a>00089 SCMatrixBlockListLink* link; <a name="l00090"></a>00090 <span class="keyword">public</span>: <a name="l00091"></a>00091 SCMatrixBlockListIter(): link(0) {} <a name="l00092"></a>00092 SCMatrixBlockListIter(SCMatrixBlockListLink*l): link(l) {} <a name="l00093"></a>00093 <span class="keywordtype">int</span> operator !=(<span class="keyword">const</span> SCMatrixBlockListIter p)<span class="keyword"> const </span>{ <a name="l00094"></a>00094 <span class="keywordflow">return</span> link != p.link; <a name="l00095"></a>00095 } <a name="l00096"></a>00096 <span class="keywordtype">void</span> operator ++() { link = link->next(); } <a name="l00097"></a>00097 <span class="keywordtype">void</span> operator ++(<span class="keywordtype">int</span>) { link = link->next(); } <a name="l00098"></a>00098 SCMatrixBlock* block()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> link->block(); } <a name="l00099"></a>00099 }; <a name="l00100"></a>00100 <a name="l00101"></a>00101 <span class="keyword">class </span>SCMatrixBlockList: <span class="keyword">public</span> SavableState { <a name="l00102"></a>00102 <span class="keyword">private</span>: <a name="l00103"></a>00103 SCMatrixBlockListLink* _begin; <a name="l00104"></a>00104 <span class="keyword">public</span>: <a name="l00105"></a>00105 SCMatrixBlockList(); <a name="l00106"></a>00106 SCMatrixBlockList(StateIn&); <a name="l00107"></a>00107 ~SCMatrixBlockList(); <a name="l00108"></a>00108 <span class="keywordtype">void</span> save_data_state(StateOut&); <a name="l00109"></a>00109 <span class="keywordtype">void</span> insert(SCMatrixBlock*); <a name="l00110"></a>00110 <span class="keywordtype">void</span> append(SCMatrixBlock*); <a name="l00111"></a>00111 SCMatrixBlockListIter begin() { <span class="keywordflow">return</span> _begin; } <a name="l00112"></a>00112 SCMatrixBlockListIter end() { <span class="keywordflow">return</span> 0; } <a name="l00113"></a>00113 SCMatrixBlockList *deepcopy(); <a name="l00114"></a>00114 }; <a name="l00115"></a>00115 <a name="l00116"></a>00116 <a name="l00127"></a><a class="code" href="classsc_1_1SCVectorSimpleBlock.html">00127</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCVectorSimpleBlock.html" title="The SCVectorSimpleBlock describes a piece of a vector.">SCVectorSimpleBlock</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> { <a name="l00128"></a>00128 <span class="keyword">public</span>: <a name="l00129"></a>00129 <a class="code" href="classsc_1_1SCVectorSimpleBlock.html" title="The SCVectorSimpleBlock describes a piece of a vector.">SCVectorSimpleBlock</a>(<span class="keywordtype">int</span> istart,<span class="keywordtype">int</span> iend); <a name="l00130"></a>00130 <a class="code" href="classsc_1_1SCVectorSimpleBlock.html" title="The SCVectorSimpleBlock describes a piece of a vector.">SCVectorSimpleBlock</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&); <a name="l00131"></a>00131 <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1SCVectorSimpleBlock.html" title="The SCVectorSimpleBlock describes a piece of a vector.">SCVectorSimpleBlock</a>(); <a name="l00132"></a>00132 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVectorSimpleBlock.html#24c3b2a00a108b7324676ae42e56b26d" title="Save the base classes (with save_data_state) and the members in the same order that...">save_data_state</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&); <a name="l00133"></a>00133 <span class="keywordtype">int</span> istart; <a name="l00134"></a>00134 <span class="keywordtype">int</span> iend; <a name="l00135"></a>00135 <span class="keywordtype">double</span>* data; <a name="l00136"></a>00136 <a name="l00137"></a>00137 <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> *<a class="code" href="classsc_1_1SCVectorSimpleBlock.html#104284da4b72ff2a48e99f96013b2341" title="Return of copy of this.">deepcopy</a>() <span class="keyword">const</span>; <a name="l00138"></a>00138 <a name="l00139"></a>00139 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp.html" title="Objects of class SCElementOp are used to perform operations on the elements of matrices...">SCElementOp</a>*); <a name="l00140"></a>00140 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp2.html" title="The SCElementOp2 class is very similar to the SCElementOp class except that pairs...">SCElementOp2</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00141"></a>00141 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp3.html" title="The SCElementOp3 class is very similar to the SCElementOp class except that a triplet...">SCElementOp3</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00142"></a>00142 <a name="l00143"></a>00143 <span class="keywordtype">double</span> *<a class="code" href="classsc_1_1SCVectorSimpleBlock.html#22904ee3a590becaac1377ce8210723e" title="Return a pointer to the block&#39;s data and the number of elements in the block...">dat</a>(); <a name="l00144"></a>00144 <span class="keywordtype">int</span> ndat() <span class="keyword">const</span>; <a name="l00145"></a>00145 }; <a name="l00146"></a>00146 <a name="l00147"></a>00147 <a name="l00158"></a><a class="code" href="classsc_1_1SCVectorSimpleSubBlock.html">00158</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCVectorSimpleSubBlock.html" title="The SCVectorSimpleSubBlock describes a subblock of a vector.">SCVectorSimpleSubBlock</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> { <a name="l00159"></a>00159 <span class="keyword">public</span>: <a name="l00160"></a>00160 <a class="code" href="classsc_1_1SCVectorSimpleSubBlock.html" title="The SCVectorSimpleSubBlock describes a subblock of a vector.">SCVectorSimpleSubBlock</a>(<span class="keywordtype">int</span> istart,<span class="keywordtype">int</span> iend, <span class="keywordtype">int</span> offset, <span class="keywordtype">double</span>* data); <a name="l00161"></a>00161 <a class="code" href="classsc_1_1SCVectorSimpleSubBlock.html" title="The SCVectorSimpleSubBlock describes a subblock of a vector.">SCVectorSimpleSubBlock</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&); <a name="l00162"></a>00162 <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1SCVectorSimpleSubBlock.html" title="The SCVectorSimpleSubBlock describes a subblock of a vector.">SCVectorSimpleSubBlock</a>(); <a name="l00163"></a>00163 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCVectorSimpleSubBlock.html#657c3d2cc57fa503e8fae6b59a74ffd3" title="Save the base classes (with save_data_state) and the members in the same order that...">save_data_state</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&); <a name="l00164"></a>00164 <span class="keywordtype">int</span> istart; <a name="l00165"></a>00165 <span class="keywordtype">int</span> iend; <a name="l00166"></a>00166 <span class="keywordtype">int</span> offset; <a name="l00167"></a>00167 <span class="keywordtype">double</span>* data; <a name="l00168"></a>00168 <a name="l00169"></a>00169 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp.html" title="Objects of class SCElementOp are used to perform operations on the elements of matrices...">SCElementOp</a>*); <a name="l00170"></a>00170 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp2.html" title="The SCElementOp2 class is very similar to the SCElementOp class except that pairs...">SCElementOp2</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00171"></a>00171 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp3.html" title="The SCElementOp3 class is very similar to the SCElementOp class except that a triplet...">SCElementOp3</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00172"></a>00172 }; <a name="l00173"></a>00173 <a name="l00174"></a>00174 <a name="l00187"></a><a class="code" href="classsc_1_1SCMatrixRectBlock.html">00187</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCMatrixRectBlock.html" title="The SCMatrixRectBlock describes a rectangular piece of a matrix.">SCMatrixRectBlock</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> { <a name="l00188"></a>00188 <span class="keyword">public</span>: <a name="l00189"></a>00189 <a class="code" href="classsc_1_1SCMatrixRectBlock.html" title="The SCMatrixRectBlock describes a rectangular piece of a matrix.">SCMatrixRectBlock</a>(<span class="keywordtype">int</span> is, <span class="keywordtype">int</span> ie, <span class="keywordtype">int</span> js, <span class="keywordtype">int</span> je); <a name="l00190"></a>00190 <a class="code" href="classsc_1_1SCMatrixRectBlock.html" title="The SCMatrixRectBlock describes a rectangular piece of a matrix.">SCMatrixRectBlock</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&); <a name="l00191"></a>00191 <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1SCMatrixRectBlock.html" title="The SCMatrixRectBlock describes a rectangular piece of a matrix.">SCMatrixRectBlock</a>(); <a name="l00192"></a>00192 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrixRectBlock.html#5cce1df18c2a42099c67f75ff8c0bac2" title="Save the base classes (with save_data_state) and the members in the same order that...">save_data_state</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&); <a name="l00193"></a>00193 <span class="keywordtype">int</span> istart; <a name="l00194"></a>00194 <span class="keywordtype">int</span> jstart; <a name="l00195"></a>00195 <span class="keywordtype">int</span> iend; <a name="l00196"></a>00196 <span class="keywordtype">int</span> jend; <a name="l00197"></a>00197 <span class="keywordtype">double</span>* data; <a name="l00198"></a>00198 <a name="l00199"></a>00199 <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> *<a class="code" href="classsc_1_1SCMatrixRectBlock.html#272a18ddf9d51bda8fa493374b197b60" title="Return of copy of this.">deepcopy</a>() <span class="keyword">const</span>; <a name="l00200"></a>00200 <a name="l00201"></a>00201 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp.html" title="Objects of class SCElementOp are used to perform operations on the elements of matrices...">SCElementOp</a>*); <a name="l00202"></a>00202 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp2.html" title="The SCElementOp2 class is very similar to the SCElementOp class except that pairs...">SCElementOp2</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00203"></a>00203 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp3.html" title="The SCElementOp3 class is very similar to the SCElementOp class except that a triplet...">SCElementOp3</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00204"></a>00204 <a name="l00205"></a>00205 <span class="keywordtype">double</span> *<a class="code" href="classsc_1_1SCMatrixRectBlock.html#dd1c1d5a269ba49709975b8d3f075242" title="Return a pointer to the block&#39;s data and the number of elements in the block...">dat</a>(); <a name="l00206"></a>00206 <span class="keywordtype">int</span> ndat() <span class="keyword">const</span>; <a name="l00207"></a>00207 }; <a name="l00208"></a>00208 <a name="l00209"></a>00209 <a name="l00223"></a><a class="code" href="classsc_1_1SCMatrixRectSubBlock.html">00223</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCMatrixRectSubBlock.html" title="The SCMatrixRectSubBlock describes a rectangular piece of a matrix.">SCMatrixRectSubBlock</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> { <a name="l00224"></a>00224 <span class="keyword">public</span>: <a name="l00225"></a>00225 <a class="code" href="classsc_1_1SCMatrixRectSubBlock.html" title="The SCMatrixRectSubBlock describes a rectangular piece of a matrix.">SCMatrixRectSubBlock</a>(<span class="keywordtype">int</span> is, <span class="keywordtype">int</span> ie, <span class="keywordtype">int</span> istride, <span class="keywordtype">int</span> js, <span class="keywordtype">int</span> je, <a name="l00226"></a>00226 <span class="keywordtype">double</span>* data); <a name="l00227"></a>00227 <a class="code" href="classsc_1_1SCMatrixRectSubBlock.html" title="The SCMatrixRectSubBlock describes a rectangular piece of a matrix.">SCMatrixRectSubBlock</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&); <a name="l00228"></a>00228 <span class="comment">// does not delete the data member</span> <a name="l00229"></a>00229 <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1SCMatrixRectSubBlock.html" title="The SCMatrixRectSubBlock describes a rectangular piece of a matrix.">SCMatrixRectSubBlock</a>(); <a name="l00230"></a>00230 <span class="comment">// does not save the data member</span> <a name="l00231"></a>00231 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrixRectSubBlock.html#7c9b30a2b6ec6bf2283dd7ffe45163a2" title="Save the base classes (with save_data_state) and the members in the same order that...">save_data_state</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&); <a name="l00232"></a>00232 <span class="keywordtype">int</span> istart; <a name="l00233"></a>00233 <span class="keywordtype">int</span> jstart; <a name="l00234"></a>00234 <span class="keywordtype">int</span> iend; <a name="l00235"></a>00235 <span class="keywordtype">int</span> jend; <a name="l00236"></a>00236 <span class="keywordtype">int</span> istride; <a name="l00237"></a>00237 <span class="keywordtype">double</span>* data; <a name="l00238"></a>00238 <a name="l00239"></a>00239 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp.html" title="Objects of class SCElementOp are used to perform operations on the elements of matrices...">SCElementOp</a>*); <a name="l00240"></a>00240 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp2.html" title="The SCElementOp2 class is very similar to the SCElementOp class except that pairs...">SCElementOp2</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00241"></a>00241 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp3.html" title="The SCElementOp3 class is very similar to the SCElementOp class except that a triplet...">SCElementOp3</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00242"></a>00242 }; <a name="l00243"></a>00243 <a name="l00244"></a>00244 <a name="l00257"></a><a class="code" href="classsc_1_1SCMatrixLTriBlock.html">00257</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCMatrixLTriBlock.html" title="The SCMatrixLTriBlock describes a triangular piece of a matrix.">SCMatrixLTriBlock</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> { <a name="l00258"></a>00258 <span class="keyword">public</span>: <a name="l00259"></a>00259 <a class="code" href="classsc_1_1SCMatrixLTriBlock.html" title="The SCMatrixLTriBlock describes a triangular piece of a matrix.">SCMatrixLTriBlock</a>(<span class="keywordtype">int</span> s,<span class="keywordtype">int</span> e); <a name="l00260"></a>00260 <a class="code" href="classsc_1_1SCMatrixLTriBlock.html" title="The SCMatrixLTriBlock describes a triangular piece of a matrix.">SCMatrixLTriBlock</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&); <a name="l00261"></a>00261 <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1SCMatrixLTriBlock.html" title="The SCMatrixLTriBlock describes a triangular piece of a matrix.">SCMatrixLTriBlock</a>(); <a name="l00262"></a>00262 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrixLTriBlock.html#032f2ed7f6999dab26fd09ed3ef8bc2e" title="Save the base classes (with save_data_state) and the members in the same order that...">save_data_state</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&); <a name="l00263"></a>00263 <span class="keywordtype">int</span> start; <a name="l00264"></a>00264 <span class="keywordtype">int</span> end; <a name="l00265"></a>00265 <span class="keywordtype">double</span>* data; <a name="l00266"></a>00266 <a name="l00267"></a>00267 <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> *<a class="code" href="classsc_1_1SCMatrixLTriBlock.html#d8cb47dc684787b525b08b3e5c03f4d0" title="Return of copy of this.">deepcopy</a>() <span class="keyword">const</span>; <a name="l00268"></a>00268 <a name="l00269"></a>00269 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp.html" title="Objects of class SCElementOp are used to perform operations on the elements of matrices...">SCElementOp</a>*); <a name="l00270"></a>00270 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp2.html" title="The SCElementOp2 class is very similar to the SCElementOp class except that pairs...">SCElementOp2</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00271"></a>00271 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp3.html" title="The SCElementOp3 class is very similar to the SCElementOp class except that a triplet...">SCElementOp3</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00272"></a>00272 <a name="l00273"></a>00273 <span class="keywordtype">double</span> *<a class="code" href="classsc_1_1SCMatrixLTriBlock.html#82c2848b9551e4ce9775708a22c4a6c7" title="Return a pointer to the block&#39;s data and the number of elements in the block...">dat</a>(); <a name="l00274"></a>00274 <span class="keywordtype">int</span> ndat() <span class="keyword">const</span>; <a name="l00275"></a>00275 }; <a name="l00276"></a>00276 <a name="l00277"></a>00277 <a name="l00292"></a><a class="code" href="classsc_1_1SCMatrixLTriSubBlock.html">00292</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCMatrixLTriSubBlock.html" title="The SCMatrixLTriSubBlock describes a triangular subblock of a matrix.">SCMatrixLTriSubBlock</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> { <a name="l00293"></a>00293 <span class="keyword">public</span>: <a name="l00294"></a>00294 <a class="code" href="classsc_1_1SCMatrixLTriSubBlock.html" title="The SCMatrixLTriSubBlock describes a triangular subblock of a matrix.">SCMatrixLTriSubBlock</a>(<span class="keywordtype">int</span> is,<span class="keywordtype">int</span> ie,<span class="keywordtype">int</span> js,<span class="keywordtype">int</span> je,<span class="keywordtype">double</span>*data); <a name="l00295"></a>00295 <a class="code" href="classsc_1_1SCMatrixLTriSubBlock.html" title="The SCMatrixLTriSubBlock describes a triangular subblock of a matrix.">SCMatrixLTriSubBlock</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&); <a name="l00296"></a>00296 <span class="comment">// does not delete the data member</span> <a name="l00297"></a>00297 <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1SCMatrixLTriSubBlock.html" title="The SCMatrixLTriSubBlock describes a triangular subblock of a matrix.">SCMatrixLTriSubBlock</a>(); <a name="l00298"></a>00298 <span class="comment">// does not save the data member</span> <a name="l00299"></a>00299 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrixLTriSubBlock.html#54c2fdc0647921ec5fa5605d0df42600" title="Save the base classes (with save_data_state) and the members in the same order that...">save_data_state</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&); <a name="l00300"></a>00300 <span class="keywordtype">int</span> istart; <a name="l00301"></a>00301 <span class="keywordtype">int</span> iend; <a name="l00302"></a>00302 <span class="keywordtype">int</span> jstart; <a name="l00303"></a>00303 <span class="keywordtype">int</span> jend; <a name="l00304"></a>00304 <span class="keywordtype">double</span>* data; <a name="l00305"></a>00305 <a name="l00306"></a>00306 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp.html" title="Objects of class SCElementOp are used to perform operations on the elements of matrices...">SCElementOp</a>*); <a name="l00307"></a>00307 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp2.html" title="The SCElementOp2 class is very similar to the SCElementOp class except that pairs...">SCElementOp2</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00308"></a>00308 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp3.html" title="The SCElementOp3 class is very similar to the SCElementOp class except that a triplet...">SCElementOp3</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00309"></a>00309 }; <a name="l00310"></a>00310 <a name="l00311"></a>00311 <a name="l00322"></a><a class="code" href="classsc_1_1SCMatrixDiagBlock.html">00322</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCMatrixDiagBlock.html" title="The SCMatrixDiagBlock describes a diagonal piece of a matrix.">SCMatrixDiagBlock</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> { <a name="l00323"></a>00323 <span class="keyword">public</span>: <a name="l00324"></a>00324 <a class="code" href="classsc_1_1SCMatrixDiagBlock.html" title="The SCMatrixDiagBlock describes a diagonal piece of a matrix.">SCMatrixDiagBlock</a>(<span class="keywordtype">int</span> istart,<span class="keywordtype">int</span> iend,<span class="keywordtype">int</span> jstart); <a name="l00325"></a>00325 <a class="code" href="classsc_1_1SCMatrixDiagBlock.html" title="The SCMatrixDiagBlock describes a diagonal piece of a matrix.">SCMatrixDiagBlock</a>(<span class="keywordtype">int</span> istart,<span class="keywordtype">int</span> iend); <a name="l00326"></a>00326 <a class="code" href="classsc_1_1SCMatrixDiagBlock.html" title="The SCMatrixDiagBlock describes a diagonal piece of a matrix.">SCMatrixDiagBlock</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&); <a name="l00327"></a>00327 <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1SCMatrixDiagBlock.html" title="The SCMatrixDiagBlock describes a diagonal piece of a matrix.">SCMatrixDiagBlock</a>(); <a name="l00328"></a>00328 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrixDiagBlock.html#45f9834faaba6754a575c0be15cfa493" title="Save the base classes (with save_data_state) and the members in the same order that...">save_data_state</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&); <a name="l00329"></a>00329 <span class="keywordtype">int</span> istart; <a name="l00330"></a>00330 <span class="keywordtype">int</span> jstart; <a name="l00331"></a>00331 <span class="keywordtype">int</span> iend; <a name="l00332"></a>00332 <span class="keywordtype">double</span>* data; <a name="l00333"></a>00333 <a name="l00334"></a>00334 <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> *<a class="code" href="classsc_1_1SCMatrixDiagBlock.html#8593147bdfa036e7b3ca89df0f460c9d" title="Return of copy of this.">deepcopy</a>() <span class="keyword">const</span>; <a name="l00335"></a>00335 <a name="l00336"></a>00336 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp.html" title="Objects of class SCElementOp are used to perform operations on the elements of matrices...">SCElementOp</a>*); <a name="l00337"></a>00337 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp2.html" title="The SCElementOp2 class is very similar to the SCElementOp class except that pairs...">SCElementOp2</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00338"></a>00338 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp3.html" title="The SCElementOp3 class is very similar to the SCElementOp class except that a triplet...">SCElementOp3</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00339"></a>00339 <a name="l00340"></a>00340 <span class="keywordtype">double</span> *<a class="code" href="classsc_1_1SCMatrixDiagBlock.html#34618ad347864f23c8f3da763afced3c" title="Return a pointer to the block&#39;s data and the number of elements in the block...">dat</a>(); <a name="l00341"></a>00341 <span class="keywordtype">int</span> ndat() <span class="keyword">const</span>; <a name="l00342"></a>00342 }; <a name="l00343"></a>00343 <a name="l00344"></a>00344 <a name="l00355"></a><a class="code" href="classsc_1_1SCMatrixDiagSubBlock.html">00355</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCMatrixDiagSubBlock.html" title="The SCMatrixDiagSubBlock describes a diagonal subblock of a matrix.">SCMatrixDiagSubBlock</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> { <a name="l00356"></a>00356 <span class="keyword">public</span>: <a name="l00357"></a>00357 <a class="code" href="classsc_1_1SCMatrixDiagSubBlock.html" title="The SCMatrixDiagSubBlock describes a diagonal subblock of a matrix.">SCMatrixDiagSubBlock</a>(<span class="keywordtype">int</span> istart,<span class="keywordtype">int</span> iend,<span class="keywordtype">int</span> jstart, <span class="keywordtype">int</span> offset, <a name="l00358"></a>00358 <span class="keywordtype">double</span>*data); <a name="l00359"></a>00359 <a class="code" href="classsc_1_1SCMatrixDiagSubBlock.html" title="The SCMatrixDiagSubBlock describes a diagonal subblock of a matrix.">SCMatrixDiagSubBlock</a>(<span class="keywordtype">int</span> istart,<span class="keywordtype">int</span> iend, <span class="keywordtype">int</span> offset, <span class="keywordtype">double</span>*data); <a name="l00360"></a>00360 <a class="code" href="classsc_1_1SCMatrixDiagSubBlock.html" title="The SCMatrixDiagSubBlock describes a diagonal subblock of a matrix.">SCMatrixDiagSubBlock</a>(<a class="code" href="classsc_1_1StateIn.html" title="Restores objects that derive from SavableState.">StateIn</a>&); <a name="l00361"></a>00361 <span class="comment">// does not delete the data member</span> <a name="l00362"></a>00362 <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1SCMatrixDiagSubBlock.html" title="The SCMatrixDiagSubBlock describes a diagonal subblock of a matrix.">SCMatrixDiagSubBlock</a>(); <a name="l00363"></a>00363 <span class="comment">// does not save the data member</span> <a name="l00364"></a>00364 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrixDiagSubBlock.html#ee19414dc37ec7c9252e7e1f63871cbe" title="Save the base classes (with save_data_state) and the members in the same order that...">save_data_state</a>(<a class="code" href="classsc_1_1StateOut.html" title="Serializes objects that derive from SavableState.">StateOut</a>&); <a name="l00365"></a>00365 <span class="keywordtype">int</span> istart; <a name="l00366"></a>00366 <span class="keywordtype">int</span> jstart; <a name="l00367"></a>00367 <span class="keywordtype">int</span> iend; <a name="l00368"></a>00368 <span class="keywordtype">int</span> offset; <a name="l00369"></a>00369 <span class="keywordtype">double</span>* data; <a name="l00370"></a>00370 <a name="l00371"></a>00371 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp.html" title="Objects of class SCElementOp are used to perform operations on the elements of matrices...">SCElementOp</a>*); <a name="l00372"></a>00372 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp2.html" title="The SCElementOp2 class is very similar to the SCElementOp class except that pairs...">SCElementOp2</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00373"></a>00373 <span class="keywordtype">void</span> process(<a class="code" href="classsc_1_1SCElementOp3.html" title="The SCElementOp3 class is very similar to the SCElementOp class except that a triplet...">SCElementOp3</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*, <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a>*); <a name="l00374"></a>00374 }; <a name="l00375"></a>00375 <a name="l00376"></a>00376 <a name="l00377"></a>00377 <span class="comment">// //////////////////////////////////////////////////////////////////</span> <a name="l00378"></a>00378 <span class="comment">// Classes that iterate through the blocks of a matrix.</span> <a name="l00379"></a>00379 <a name="l00383"></a><a class="code" href="classsc_1_1SCMatrixSubblockIter.html">00383</a> <span class="keyword">class </span><a class="code" href="classsc_1_1SCMatrixSubblockIter.html" title="Objects of class SCMatrixSubblockIter are used to iterate through the blocks of a...">SCMatrixSubblockIter</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1RefCount.html" title="The base class for all reference counted objects.">RefCount</a> { <a name="l00384"></a>00384 <span class="keyword">public</span>: <a name="l00385"></a>00385 <span class="keyword">enum</span> Access { Read, Write, Accum, None }; <a name="l00386"></a>00386 <span class="keyword">protected</span>: <a name="l00387"></a>00387 Access access_; <a name="l00388"></a>00388 <span class="keyword">public</span>: <a name="l00391"></a><a class="code" href="classsc_1_1SCMatrixSubblockIter.html#ee06b3d601e5c1045196839124f09341">00391</a> <a class="code" href="classsc_1_1SCMatrixSubblockIter.html#ee06b3d601e5c1045196839124f09341" title="The access variable should be one of Read, Write, Accum, and None, with the SCMatrixSubblockIter::...">SCMatrixSubblockIter</a>(Access <a class="code" href="classsc_1_1SCMatrixSubblockIter.html#266d0cf6ea9ad24059cefe631905c7e9" title="Return the type of Access allowed for these blocks.">access</a>): access_(access) {} <a name="l00392"></a>00392 ~<a class="code" href="classsc_1_1SCMatrixSubblockIter.html" title="Objects of class SCMatrixSubblockIter are used to iterate through the blocks of a...">SCMatrixSubblockIter</a>(); <a name="l00394"></a>00394 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrixSubblockIter.html#d6552a00f6427d3f68faf614efd558df" title="Start at the beginning.">begin</a>() = 0; <a name="l00396"></a>00396 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classsc_1_1SCMatrixSubblockIter.html#d2583c1e0e82e5a6801d6c128ba0fde7" title="Returns nonzero if there is another block.">ready</a>() = 0; <a name="l00398"></a>00398 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1SCMatrixSubblockIter.html#a565601137170913f4ea1d21fd30bd02" title="Proceed to the next block.">next</a>() = 0; <a name="l00400"></a>00400 <span class="keyword">virtual</span> <a class="code" href="classsc_1_1SCMatrixBlock.html" title="SCMatrixBlock is the base clase for all types of blocks that comprise matrices and...">SCMatrixBlock</a> *<a class="code" href="classsc_1_1SCMatrixSubblockIter.html#8062da67e48c1b8eba4c82c4a41afee1" title="Return the current block.">block</a>() = 0; <a name="l00402"></a><a class="code" href="classsc_1_1SCMatrixSubblockIter.html#266d0cf6ea9ad24059cefe631905c7e9">00402</a> Access <a class="code" href="classsc_1_1SCMatrixSubblockIter.html#266d0cf6ea9ad24059cefe631905c7e9" title="Return the type of Access allowed for these blocks.">access</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> access_; } <a name="l00403"></a>00403 }; <a name="l00404"></a>00404 <a name="l00405"></a>00405 <a name="l00406"></a>00406 <span class="keyword">class </span>SCMatrixSimpleSubblockIter: <span class="keyword">public</span> SCMatrixSubblockIter { <a name="l00407"></a>00407 <span class="keyword">protected</span>: <a name="l00408"></a>00408 Ref<SCMatrixBlock> block_; <a name="l00409"></a>00409 <span class="keywordtype">int</span> ready_; <a name="l00410"></a>00410 <span class="keyword">public</span>: <a name="l00411"></a>00411 SCMatrixSimpleSubblockIter(Access, <span class="keyword">const</span> Ref<SCMatrixBlock> &b); <a name="l00412"></a>00412 <span class="keywordtype">void</span> begin(); <a name="l00413"></a>00413 <span class="keywordtype">int</span> ready(); <a name="l00414"></a>00414 <span class="keywordtype">void</span> next(); <a name="l00415"></a>00415 SCMatrixBlock *block(); <a name="l00416"></a>00416 }; <a name="l00417"></a>00417 <a name="l00418"></a>00418 <span class="keyword">class </span>SCMatrixListSubblockIter: <span class="keyword">public</span> SCMatrixSubblockIter { <a name="l00419"></a>00419 <span class="keyword">protected</span>: <a name="l00420"></a>00420 Ref<SCMatrixBlockList> list_; <a name="l00421"></a>00421 SCMatrixBlockListIter iter_; <a name="l00422"></a>00422 <span class="keyword">public</span>: <a name="l00423"></a>00423 SCMatrixListSubblockIter(Access, <span class="keyword">const</span> Ref<SCMatrixBlockList> &list); <a name="l00424"></a>00424 <span class="keywordtype">void</span> begin(); <a name="l00425"></a>00425 <span class="keywordtype">int</span> ready(); <a name="l00426"></a>00426 <span class="keywordtype">void</span> next(); <a name="l00427"></a>00427 SCMatrixBlock *block(); <a name="l00428"></a>00428 }; <a name="l00429"></a>00429 <a name="l00430"></a>00430 <span class="keyword">class </span>SCMatrixNullSubblockIter: <span class="keyword">public</span> SCMatrixSubblockIter { <a name="l00431"></a>00431 <span class="keyword">public</span>: <a name="l00432"></a>00432 SCMatrixNullSubblockIter(); <a name="l00433"></a>00433 SCMatrixNullSubblockIter(Access); <a name="l00434"></a>00434 <span class="keywordtype">void</span> begin(); <a name="l00435"></a>00435 <span class="keywordtype">int</span> ready(); <a name="l00436"></a>00436 <span class="keywordtype">void</span> next(); <a name="l00437"></a>00437 SCMatrixBlock *block(); <a name="l00438"></a>00438 }; <a name="l00439"></a>00439 <a name="l00440"></a>00440 <span class="keyword">class </span>SCMatrixCompositeSubblockIter: <span class="keyword">public</span> SCMatrixSubblockIter { <a name="l00441"></a>00441 <span class="keyword">protected</span>: <a name="l00442"></a>00442 <span class="keywordtype">int</span> niters_; <a name="l00443"></a>00443 Ref<SCMatrixSubblockIter> *iters_; <a name="l00444"></a>00444 <span class="keywordtype">int</span> iiter_; <a name="l00445"></a>00445 <span class="keyword">public</span>: <a name="l00446"></a>00446 SCMatrixCompositeSubblockIter(Access, <span class="keywordtype">int</span> niter); <a name="l00447"></a>00447 SCMatrixCompositeSubblockIter(Ref<SCMatrixSubblockIter>&, <a name="l00448"></a>00448 Ref<SCMatrixSubblockIter>&); <a name="l00449"></a>00449 ~SCMatrixCompositeSubblockIter(); <a name="l00450"></a>00450 <span class="keywordtype">void</span> set_iter(<span class="keywordtype">int</span> i, <span class="keyword">const</span> Ref<SCMatrixSubblockIter> &); <a name="l00451"></a>00451 <span class="keywordtype">void</span> begin(); <a name="l00452"></a>00452 <span class="keywordtype">int</span> ready(); <a name="l00453"></a>00453 <span class="keywordtype">void</span> next(); <a name="l00454"></a>00454 SCMatrixBlock *block(); <a name="l00455"></a>00455 <span class="keywordtype">int</span> current_block()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> iiter_; } <a name="l00456"></a>00456 }; <a name="l00457"></a>00457 <a name="l00458"></a>00458 <a name="l00459"></a>00459 <span class="keyword">class </span>SCMatrixJointSubblockIter: <span class="keyword">public</span> SCMatrixSubblockIter { <a name="l00460"></a>00460 <span class="keyword">protected</span>: <a name="l00461"></a>00461 <span class="keywordtype">int</span> niters_; <a name="l00462"></a>00462 Ref<SCMatrixSubblockIter> *iters_; <a name="l00463"></a>00463 <span class="keyword">public</span>: <a name="l00464"></a>00464 SCMatrixJointSubblockIter(<span class="keyword">const</span> Ref<SCMatrixSubblockIter>&, <a name="l00465"></a>00465 <span class="keyword">const</span> Ref<SCMatrixSubblockIter>&, <a name="l00466"></a>00466 <span class="keyword">const</span> Ref<SCMatrixSubblockIter>& = 0, <a name="l00467"></a>00467 <span class="keyword">const</span> Ref<SCMatrixSubblockIter>& = 0, <a name="l00468"></a>00468 <span class="keyword">const</span> Ref<SCMatrixSubblockIter>& = 0); <a name="l00469"></a>00469 ~SCMatrixJointSubblockIter(); <a name="l00470"></a>00470 <span class="keywordtype">void</span> begin(); <a name="l00471"></a>00471 <span class="keywordtype">int</span> ready(); <a name="l00472"></a>00472 <span class="keywordtype">void</span> next(); <a name="l00473"></a>00473 SCMatrixBlock *block(); <a name="l00474"></a>00474 SCMatrixBlock *block(<span class="keywordtype">int</span> i); <a name="l00475"></a>00475 }; <a name="l00476"></a>00476 <a name="l00477"></a>00477 } <a name="l00478"></a>00478 <a name="l00479"></a>00479 <span class="preprocessor">#endif</span> <a name="l00480"></a>00480 <span class="preprocessor"></span> <a name="l00481"></a>00481 <span class="comment">// Local Variables:</span> <a name="l00482"></a>00482 <span class="comment">// mode: c++</span> <a name="l00483"></a>00483 <span class="comment">// c-file-style: "CLJ"</span> <a name="l00484"></a>00484 <span class="comment">// End:</span> </pre></div></div> <hr> <address> <small> Generated at Wed Oct 14 14:12:09 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>