2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-22 03:42:19 +00:00
Files
ublas/doc/doxyfiles/html/a00626_source.html
David Bellot 11b1711474 new doxyfiles
[SVN r75573]
2011-11-20 14:50:03 +00:00

903 lines
113 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Boost.uBlas: operation.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<script type="text/javascript">
function hasClass(ele,cls) {
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}
function removeClass(ele,cls) {
if (hasClass(ele,cls)) {
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
ele.className=ele.className.replace(reg,' ');
}
}
function toggleVisibility(linkObj) {
var base = linkObj.getAttribute('id');
var summary = document.getElementById(base + '-summary');
var content = document.getElementById(base + '-content');
var trigger = document.getElementById(base + '-trigger');
if ( hasClass(linkObj,'closed') ) {
summary.style.display = 'none';
content.style.display = 'block';
trigger.src = 'open.png';
removeClass(linkObj,'closed');
addClass(linkObj,'opened');
} else if ( hasClass(linkObj,'opened') ) {
summary.style.display = 'block';
content.style.display = 'none';
trigger.src = 'closed.png';
removeClass(linkObj,'opened');
addClass(linkObj,'closed');
}
return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="logo boost ublas.png"></td>
<td style="padding-left: 0.5em;">
<div id="projectname">Boost.uBlas&#160;<span id="projectnumber">1.49</span></div>
<div id="projectbrief">Linear Algebra in C++: matrices, vectors and numeric algorithms</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</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>
<li id="searchli">
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
initNavTree('a00626.html','');
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<h1>operation.hpp</h1> </div>
</div>
<div class="contents">
<a href="a00626.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (c) 2000-2002</span>
<a name="l00003"></a>00003 <span class="comment">// Joerg Walter, Mathias Koch</span>
<a name="l00004"></a>00004 <span class="comment">//</span>
<a name="l00005"></a>00005 <span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
<a name="l00006"></a>00006 <span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
<a name="l00007"></a>00007 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt)</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// The authors gratefully acknowledge the support of</span>
<a name="l00010"></a>00010 <span class="comment">// GeNeSys mbH &amp; Co. KG in producing this work.</span>
<a name="l00011"></a>00011 <span class="comment">//</span>
<a name="l00012"></a>00012
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef _BOOST_UBLAS_OPERATION_</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define _BOOST_UBLAS_OPERATION_</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;boost/numeric/ublas/matrix_proxy.hpp&gt;</span>
<a name="l00017"></a>00017
<a name="l00022"></a>00022 <span class="comment">// axpy-based products</span>
<a name="l00023"></a>00023 <span class="comment">// Alexei Novakov had a lot of ideas to improve these. Thanks.</span>
<a name="l00024"></a>00024 <span class="comment">// Hendrik Kueck proposed some new kernel. Thanks again.</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>numeric { <span class="keyword">namespace </span>ublas {
<a name="l00027"></a>00027
<a name="l00028"></a>00028 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> T1, <span class="keyword">class</span> L1, <span class="keyword">class</span> IA1, <span class="keyword">class</span> TA1, <span class="keyword">class</span> E2&gt;
<a name="l00029"></a>00029 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00030"></a>00030 V &amp;
<a name="l00031"></a><a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">00031</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00054.html">compressed_matrix&lt;T1, L1, 0, IA1, TA1&gt;</a> &amp;e1,
<a name="l00032"></a>00032 <span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00033"></a>00033 V &amp;v, <a class="code" href="a00369.html">row_major_tag</a>) {
<a name="l00034"></a>00034 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::size_type size_type;
<a name="l00035"></a>00035 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::value_type value_type;
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="keywordflow">for</span> (size_type i = 0; i &lt; e1.<a class="code" href="a00054.html#a22bdb6e83c38e4343f961a16a80045c1">filled1</a> () -1; ++ i) {
<a name="l00038"></a>00038 size_type <a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> = e1.<a class="code" href="a00054.html#af1896b7171f9c6ee705c64e9156094f7">index1_data</a> () [i];
<a name="l00039"></a>00039 size_type <a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> = e1.<a class="code" href="a00054.html#af1896b7171f9c6ee705c64e9156094f7">index1_data</a> () [i + 1];
<a name="l00040"></a>00040 value_type t (v (i));
<a name="l00041"></a>00041 <span class="keywordflow">for</span> (size_type j = begin; j &lt; <a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a>; ++ j)
<a name="l00042"></a>00042 t += e1.<a class="code" href="a00054.html#a670a638e0cd9e1d68f9120c3d19c1987">value_data</a> () [j] * e2 () (e1.<a class="code" href="a00054.html#a20ff14ff646ec4f1723a2b634d44e4e1">index2_data</a> () [j]);
<a name="l00043"></a>00043 v (i) = t;
<a name="l00044"></a>00044 }
<a name="l00045"></a>00045 <span class="keywordflow">return</span> v;
<a name="l00046"></a>00046 }
<a name="l00047"></a>00047
<a name="l00048"></a>00048 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> T1, <span class="keyword">class</span> L1, <span class="keyword">class</span> IA1, <span class="keyword">class</span> TA1, <span class="keyword">class</span> E2&gt;
<a name="l00049"></a>00049 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00050"></a>00050 V &amp;
<a name="l00051"></a><a class="code" href="a00595.html#a15809e08532406981b113eda10b79d32">00051</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00054.html">compressed_matrix&lt;T1, L1, 0, IA1, TA1&gt;</a> &amp;e1,
<a name="l00052"></a>00052 <span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00053"></a>00053 V &amp;v, <a class="code" href="a00052.html">column_major_tag</a>) {
<a name="l00054"></a>00054 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::size_type size_type;
<a name="l00055"></a>00055
<a name="l00056"></a>00056 <span class="keywordflow">for</span> (size_type j = 0; j &lt; e1.<a class="code" href="a00054.html#a22bdb6e83c38e4343f961a16a80045c1">filled1</a> () -1; ++ j) {
<a name="l00057"></a>00057 size_type <a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> = e1.<a class="code" href="a00054.html#af1896b7171f9c6ee705c64e9156094f7">index1_data</a> () [j];
<a name="l00058"></a>00058 size_type <a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> = e1.<a class="code" href="a00054.html#af1896b7171f9c6ee705c64e9156094f7">index1_data</a> () [j + 1];
<a name="l00059"></a>00059 <span class="keywordflow">for</span> (size_type i = begin; i &lt; <a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a>; ++ i)
<a name="l00060"></a>00060 v (e1.<a class="code" href="a00054.html#a20ff14ff646ec4f1723a2b634d44e4e1">index2_data</a> () [i]) += e1.<a class="code" href="a00054.html#a670a638e0cd9e1d68f9120c3d19c1987">value_data</a> () [i] * e2 () (j);
<a name="l00061"></a>00061 }
<a name="l00062"></a>00062 <span class="keywordflow">return</span> v;
<a name="l00063"></a>00063 }
<a name="l00064"></a>00064
<a name="l00065"></a>00065 <span class="comment">// Dispatcher</span>
<a name="l00066"></a>00066 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> T1, <span class="keyword">class</span> L1, <span class="keyword">class</span> IA1, <span class="keyword">class</span> TA1, <span class="keyword">class</span> E2&gt;
<a name="l00067"></a>00067 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00068"></a>00068 V &amp;
<a name="l00069"></a><a class="code" href="a00595.html#a6db1e8356dbb3b7811209c064510330a">00069</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00054.html">compressed_matrix&lt;T1, L1, 0, IA1, TA1&gt;</a> &amp;e1,
<a name="l00070"></a>00070 <span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00071"></a>00071 V &amp;v, <span class="keywordtype">bool</span> init = <span class="keyword">true</span>) {
<a name="l00072"></a>00072 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::value_type value_type;
<a name="l00073"></a>00073 <span class="keyword">typedef</span> <span class="keyword">typename</span> L1::orientation_category orientation_category;
<a name="l00074"></a>00074
<a name="l00075"></a>00075 <span class="keywordflow">if</span> (init)
<a name="l00076"></a>00076 v.assign (<a class="code" href="a00590.html" title="A zero vector of type T and a given size A zero vector of type T and a given size. This is a virtual vector in the sense that no memory is allocated for storing the zero values: it still acts like any other vector. However assigning values to it will not change the zero vector into a normal vector. It must first be assigned to another normal vector by any suitable means. Its memory footprint is constant.">zero_vector&lt;value_type&gt;</a> (e1.<a class="code" href="a00054.html#a741b04b83c304c3b637d8a415c879652">size1</a> ()));
<a name="l00077"></a>00077 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span> <a class="code" href="a00481.html" title="A dense vector of values of type T.">vector&lt;value_type&gt;</a> cv (v);
<a name="l00079"></a>00079 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00465.html#a8212d3d2deb6273ae2006409c81ef720">type_traits&lt;value_type&gt;::real_type</a> real_type;
<a name="l00080"></a>00080 real_type verrorbound (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (v) + <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e1) * <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e2));
<a name="l00081"></a>00081 indexing_vector_assign&lt;scalar_plus_assign&gt; (cv, <a class="code" href="a00595.html#a80a491b0d654ad0d661a7ed3b272db88">prod</a> (e1, e2));
<a name="l00082"></a>00082 <span class="preprocessor">#endif</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, v, orientation_category ());
<a name="l00084"></a>00084 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (v - cv) &lt;= 2 * std::numeric_limits&lt;real_type&gt;::epsilon () * verrorbound, <a class="code" href="a00178.html" title="Expception raised when some interal errors occurs like computations errors, zeros values where you sh...">internal_logic</a> ());
<a name="l00086"></a>00086 <span class="preprocessor">#endif</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span> <span class="keywordflow">return</span> v;
<a name="l00088"></a>00088 }
<a name="l00089"></a>00089 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> T1, <span class="keyword">class</span> L1, <span class="keyword">class</span> IA1, <span class="keyword">class</span> TA1, <span class="keyword">class</span> E2&gt;
<a name="l00090"></a>00090 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00091"></a>00091 V
<a name="l00092"></a><a class="code" href="a00595.html#a66e9221448f146ab3c24ce5c8fa306fe">00092</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00054.html">compressed_matrix&lt;T1, L1, 0, IA1, TA1&gt;</a> &amp;e1,
<a name="l00093"></a>00093 <span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E2&gt;</a> &amp;e2) {
<a name="l00094"></a>00094 <span class="keyword">typedef</span> V vector_type;
<a name="l00095"></a>00095
<a name="l00096"></a>00096 vector_type v (e1.<a class="code" href="a00054.html#a741b04b83c304c3b637d8a415c879652">size1</a> ());
<a name="l00097"></a>00097 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, v, <span class="keyword">true</span>);
<a name="l00098"></a>00098 }
<a name="l00099"></a>00099
<a name="l00100"></a>00100 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> T1, <span class="keyword">class</span> L1, <span class="keyword">class</span> IA1, <span class="keyword">class</span> TA1, <span class="keyword">class</span> E2&gt;
<a name="l00101"></a>00101 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00102"></a>00102 V &amp;
<a name="l00103"></a><a class="code" href="a00595.html#a16c6173af269a62b6146e866c40a5a74">00103</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00073.html">coordinate_matrix&lt;T1, L1, 0, IA1, TA1&gt;</a> &amp;e1,
<a name="l00104"></a>00104 <span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00105"></a>00105 V &amp;v, <span class="keywordtype">bool</span> init = <span class="keyword">true</span>) {
<a name="l00106"></a>00106 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::size_type size_type;
<a name="l00107"></a>00107 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::value_type value_type;
<a name="l00108"></a>00108 <span class="keyword">typedef</span> L1 layout_type;
<a name="l00109"></a>00109
<a name="l00110"></a>00110 size_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> = e1.<a class="code" href="a00073.html#a0233af836c0801dff4dd36662d415df5">size1</a>();
<a name="l00111"></a>00111 size_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> = e1.<a class="code" href="a00073.html#a763512a559f7efad81f7fe4ea08b990e">size2</a>();
<a name="l00112"></a>00112
<a name="l00113"></a>00113 <span class="keywordflow">if</span> (init) {
<a name="l00114"></a>00114 <a class="code" href="a00595.html#ac27f88876e1b0679bf57bade5fec6845">noalias</a>(v) = <a class="code" href="a00590.html" title="A zero vector of type T and a given size A zero vector of type T and a given size. This is a virtual vector in the sense that no memory is allocated for storing the zero values: it still acts like any other vector. However assigning values to it will not change the zero vector into a normal vector. It must first be assigned to another normal vector by any suitable means. Its memory footprint is constant.">zero_vector&lt;value_type&gt;</a>(<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>);
<a name="l00115"></a>00115 }
<a name="l00116"></a>00116
<a name="l00117"></a>00117 <span class="keywordflow">for</span> (size_type i = 0; i &lt; e1.<a class="code" href="a00073.html#a2f123a719cca1acf85e739fd8b9bcadc">nnz</a>(); ++i) {
<a name="l00118"></a>00118 size_type row_index = layout_type::index_M( e1.<a class="code" href="a00073.html#a3472cecb77ba657169388440eb9938b5">index1_data</a> () [i], e1.<a class="code" href="a00073.html#ad821337d4ad4f189ee0f3137d260e768">index2_data</a> () [i] );
<a name="l00119"></a>00119 size_type col_index = layout_type::index_m( e1.<a class="code" href="a00073.html#a3472cecb77ba657169388440eb9938b5">index1_data</a> () [i], e1.<a class="code" href="a00073.html#ad821337d4ad4f189ee0f3137d260e768">index2_data</a> () [i] );
<a name="l00120"></a>00120 v( row_index ) += e1.<a class="code" href="a00073.html#a1f70fb82b5f805174a27cc3a2b1186b3">value_data</a> () [i] * e2 () (col_index);
<a name="l00121"></a>00121 }
<a name="l00122"></a>00122 <span class="keywordflow">return</span> v;
<a name="l00123"></a>00123 }
<a name="l00124"></a>00124
<a name="l00125"></a>00125 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00126"></a>00126 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00127"></a>00127 V &amp;
<a name="l00128"></a><a class="code" href="a00595.html#acb8dcbe3368ea04f5e6a59434891af76">00128</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00129"></a>00129 <span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00130"></a>00130 V &amp;v, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) {
<a name="l00131"></a>00131 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00132"></a>00132 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00133"></a>00133 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::size_type size_type;
<a name="l00134"></a>00134
<a name="l00135"></a>00135 <span class="keyword">typename</span> expression1_type::const_iterator1 it1 (e1 ().<a class="code" href="a00595.html#a006ba58a3f4c88d8e8e76e44db481757" title="An object generator that returns a begin1 manipulator.">begin1</a> ());
<a name="l00136"></a>00136 <span class="keyword">typename</span> expression1_type::const_iterator1 it1_end (e1 ().end1 ());
<a name="l00137"></a>00137 <span class="keywordflow">while</span> (it1 != it1_end) {
<a name="l00138"></a>00138 size_type index1 (it1.index1 ());
<a name="l00139"></a>00139 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span> <span class="keyword">typename</span> expression1_type::const_iterator2 it2 (it1.begin ());
<a name="l00141"></a>00141 <span class="keyword">typename</span> expression1_type::const_iterator2 it2_end (it1.end ());
<a name="l00142"></a>00142 <span class="preprocessor">#else</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span> <span class="keyword">typename</span> expression1_type::const_iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">boost::numeric::ublas::begin</a> (it1, iterator1_tag ()));
<a name="l00144"></a>00144 <span class="keyword">typename</span> expression1_type::const_iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">boost::numeric::ublas::end</a> (it1, iterator1_tag ()));
<a name="l00145"></a>00145 <span class="preprocessor">#endif</span>
<a name="l00146"></a>00146 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2 != it2_end) {
<a name="l00147"></a>00147 v (index1) += *it2 * e2 () (it2.index2 ());
<a name="l00148"></a>00148 ++ it2;
<a name="l00149"></a>00149 }
<a name="l00150"></a>00150 ++ it1;
<a name="l00151"></a>00151 }
<a name="l00152"></a>00152 <span class="keywordflow">return</span> v;
<a name="l00153"></a>00153 }
<a name="l00154"></a>00154
<a name="l00155"></a>00155 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00156"></a>00156 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00157"></a>00157 V &amp;
<a name="l00158"></a><a class="code" href="a00595.html#a5fbc4084d031f9d927be74dcc67581a9">00158</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00159"></a>00159 <span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00160"></a>00160 V &amp;v, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) {
<a name="l00161"></a>00161 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00162"></a>00162 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00163"></a>00163 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::size_type size_type;
<a name="l00164"></a>00164
<a name="l00165"></a>00165 <span class="keyword">typename</span> expression1_type::const_iterator2 it2 (e1 ().<a class="code" href="a00595.html#a0a5c2ce4e11de4e7ea5ccd122073052c" title="An object generator that returns a begin2 manipulator to be used to traverse a matrix.">begin2</a> ());
<a name="l00166"></a>00166 <span class="keyword">typename</span> expression1_type::const_iterator2 it2_end (e1 ().end2 ());
<a name="l00167"></a>00167 <span class="keywordflow">while</span> (it2 != it2_end) {
<a name="l00168"></a>00168 size_type index2 (it2.index2 ());
<a name="l00169"></a>00169 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span>
<a name="l00170"></a>00170 <span class="preprocessor"></span> <span class="keyword">typename</span> expression1_type::const_iterator1 it1 (it2.begin ());
<a name="l00171"></a>00171 <span class="keyword">typename</span> expression1_type::const_iterator1 it1_end (it2.end ());
<a name="l00172"></a>00172 <span class="preprocessor">#else</span>
<a name="l00173"></a>00173 <span class="preprocessor"></span> <span class="keyword">typename</span> expression1_type::const_iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">boost::numeric::ublas::begin</a> (it2, iterator2_tag ()));
<a name="l00174"></a>00174 <span class="keyword">typename</span> expression1_type::const_iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">boost::numeric::ublas::end</a> (it2, iterator2_tag ()));
<a name="l00175"></a>00175 <span class="preprocessor">#endif</span>
<a name="l00176"></a>00176 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1 != it1_end) {
<a name="l00177"></a>00177 v (it1.index1 ()) += *it1 * e2 () (index2);
<a name="l00178"></a>00178 ++ it1;
<a name="l00179"></a>00179 }
<a name="l00180"></a>00180 ++ it2;
<a name="l00181"></a>00181 }
<a name="l00182"></a>00182 <span class="keywordflow">return</span> v;
<a name="l00183"></a>00183 }
<a name="l00184"></a>00184
<a name="l00185"></a>00185 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00186"></a>00186 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00187"></a>00187 V &amp;
<a name="l00188"></a><a class="code" href="a00595.html#ae0aa177e110c4461dfb6a2ae5b41f79f">00188</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00189"></a>00189 <span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00190"></a>00190 V &amp;v, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>) {
<a name="l00191"></a>00191 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00192"></a>00192 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00193"></a>00193 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::size_type size_type;
<a name="l00194"></a>00194
<a name="l00195"></a>00195 <span class="keyword">typename</span> expression2_type::const_iterator it (e2 ().<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> ());
<a name="l00196"></a>00196 <span class="keyword">typename</span> expression2_type::const_iterator it_end (e2 ().<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> ());
<a name="l00197"></a>00197 <span class="keywordflow">while</span> (it != it_end) {
<a name="l00198"></a>00198 v.plus_assign (<a class="code" href="a00595.html#a401950b707ff8a1209616085404065c8">column</a> (e1 (), it.index ()) * *it);
<a name="l00199"></a>00199 ++ it;
<a name="l00200"></a>00200 }
<a name="l00201"></a>00201 <span class="keywordflow">return</span> v;
<a name="l00202"></a>00202 }
<a name="l00203"></a>00203
<a name="l00204"></a>00204 <span class="comment">// Dispatcher</span>
<a name="l00205"></a>00205 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00206"></a>00206 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00207"></a>00207 V &amp;
<a name="l00208"></a><a class="code" href="a00595.html#afebc20d3c489655df233024c1646dca5">00208</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00209"></a>00209 <span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00210"></a>00210 V &amp;v, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>) {
<a name="l00211"></a>00211 <span class="keyword">typedef</span> <span class="keyword">typename</span> E1::orientation_category orientation_category;
<a name="l00212"></a>00212 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, v, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a> (), orientation_category ());
<a name="l00213"></a>00213 }
<a name="l00214"></a>00214
<a name="l00215"></a>00215
<a name="l00241"></a>00241 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00242"></a>00242 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00243"></a>00243 V &amp;
<a name="l00244"></a><a class="code" href="a00664.html#gafae740c0339548998c4df8f661c55010">00244</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00245"></a>00245 <span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00246"></a>00246 V &amp;v, <span class="keywordtype">bool</span> init = <span class="keyword">true</span>) {
<a name="l00247"></a>00247 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::value_type value_type;
<a name="l00248"></a>00248 <span class="keyword">typedef</span> <span class="keyword">typename</span> E2::const_iterator::iterator_category iterator_category;
<a name="l00249"></a>00249
<a name="l00250"></a>00250 <span class="keywordflow">if</span> (init)
<a name="l00251"></a>00251 v.assign (<a class="code" href="a00590.html" title="A zero vector of type T and a given size A zero vector of type T and a given size. This is a virtual vector in the sense that no memory is allocated for storing the zero values: it still acts like any other vector. However assigning values to it will not change the zero vector into a normal vector. It must first be assigned to another normal vector by any suitable means. Its memory footprint is constant.">zero_vector&lt;value_type&gt;</a> (e1 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> ()));
<a name="l00252"></a>00252 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00253"></a>00253 <span class="preprocessor"></span> <a class="code" href="a00481.html" title="A dense vector of values of type T.">vector&lt;value_type&gt;</a> cv (v);
<a name="l00254"></a>00254 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00465.html#a8212d3d2deb6273ae2006409c81ef720">type_traits&lt;value_type&gt;::real_type</a> real_type;
<a name="l00255"></a>00255 real_type verrorbound (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (v) + <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e1) * <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e2));
<a name="l00256"></a>00256 indexing_vector_assign&lt;scalar_plus_assign&gt; (cv, <a class="code" href="a00595.html#a80a491b0d654ad0d661a7ed3b272db88">prod</a> (e1, e2));
<a name="l00257"></a>00257 <span class="preprocessor">#endif</span>
<a name="l00258"></a>00258 <span class="preprocessor"></span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, v, iterator_category ());
<a name="l00259"></a>00259 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00260"></a>00260 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (v - cv) &lt;= 2 * std::numeric_limits&lt;real_type&gt;::epsilon () * verrorbound, <a class="code" href="a00178.html" title="Expception raised when some interal errors occurs like computations errors, zeros values where you sh...">internal_logic</a> ());
<a name="l00261"></a>00261 <span class="preprocessor">#endif</span>
<a name="l00262"></a>00262 <span class="preprocessor"></span> <span class="keywordflow">return</span> v;
<a name="l00263"></a>00263 }
<a name="l00264"></a>00264 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00265"></a>00265 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00266"></a>00266 V
<a name="l00267"></a><a class="code" href="a00595.html#aef216b7c443c1da0aabeb234ad8c0a6f">00267</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00268"></a>00268 <span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E2&gt;</a> &amp;e2) {
<a name="l00269"></a>00269 <span class="keyword">typedef</span> V vector_type;
<a name="l00270"></a>00270
<a name="l00271"></a>00271 vector_type v (e1 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> ());
<a name="l00272"></a>00272 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, v, <span class="keyword">true</span>);
<a name="l00273"></a>00273 }
<a name="l00274"></a>00274
<a name="l00275"></a>00275 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> T2, <span class="keyword">class</span> IA2, <span class="keyword">class</span> TA2&gt;
<a name="l00276"></a>00276 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00277"></a>00277 V &amp;
<a name="l00278"></a><a class="code" href="a00595.html#a0a1fc88c0bf7b17e39ca25157395f8ce">00278</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00279"></a>00279 <span class="keyword">const</span> <a class="code" href="a00054.html">compressed_matrix&lt;T2, column_major, 0, IA2, TA2&gt;</a> &amp;e2,
<a name="l00280"></a>00280 V &amp;v, <a class="code" href="a00052.html">column_major_tag</a>) {
<a name="l00281"></a>00281 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::size_type size_type;
<a name="l00282"></a>00282 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::value_type value_type;
<a name="l00283"></a>00283
<a name="l00284"></a>00284 <span class="keywordflow">for</span> (size_type j = 0; j &lt; e2.<a class="code" href="a00054.html#a22bdb6e83c38e4343f961a16a80045c1">filled1</a> () -1; ++ j) {
<a name="l00285"></a>00285 size_type <a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> = e2.<a class="code" href="a00054.html#af1896b7171f9c6ee705c64e9156094f7">index1_data</a> () [j];
<a name="l00286"></a>00286 size_type <a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> = e2.<a class="code" href="a00054.html#af1896b7171f9c6ee705c64e9156094f7">index1_data</a> () [j + 1];
<a name="l00287"></a>00287 value_type t (v (j));
<a name="l00288"></a>00288 <span class="keywordflow">for</span> (size_type i = begin; i &lt; <a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a>; ++ i)
<a name="l00289"></a>00289 t += e2.<a class="code" href="a00054.html#a670a638e0cd9e1d68f9120c3d19c1987">value_data</a> () [i] * e1 () (e2.<a class="code" href="a00054.html#a20ff14ff646ec4f1723a2b634d44e4e1">index2_data</a> () [i]);
<a name="l00290"></a>00290 v (j) = t;
<a name="l00291"></a>00291 }
<a name="l00292"></a>00292 <span class="keywordflow">return</span> v;
<a name="l00293"></a>00293 }
<a name="l00294"></a>00294
<a name="l00295"></a>00295 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> T2, <span class="keyword">class</span> IA2, <span class="keyword">class</span> TA2&gt;
<a name="l00296"></a>00296 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00297"></a>00297 V &amp;
<a name="l00298"></a><a class="code" href="a00595.html#a8f22f27b628e27cb9e6ef653f43f2b3a">00298</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00299"></a>00299 <span class="keyword">const</span> <a class="code" href="a00054.html">compressed_matrix&lt;T2, row_major, 0, IA2, TA2&gt;</a> &amp;e2,
<a name="l00300"></a>00300 V &amp;v, <a class="code" href="a00369.html">row_major_tag</a>) {
<a name="l00301"></a>00301 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::size_type size_type;
<a name="l00302"></a>00302
<a name="l00303"></a>00303 <span class="keywordflow">for</span> (size_type i = 0; i &lt; e2.<a class="code" href="a00054.html#a22bdb6e83c38e4343f961a16a80045c1">filled1</a> () -1; ++ i) {
<a name="l00304"></a>00304 size_type <a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> = e2.<a class="code" href="a00054.html#af1896b7171f9c6ee705c64e9156094f7">index1_data</a> () [i];
<a name="l00305"></a>00305 size_type <a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> = e2.<a class="code" href="a00054.html#af1896b7171f9c6ee705c64e9156094f7">index1_data</a> () [i + 1];
<a name="l00306"></a>00306 <span class="keywordflow">for</span> (size_type j = begin; j &lt; <a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a>; ++ j)
<a name="l00307"></a>00307 v (e2.<a class="code" href="a00054.html#a20ff14ff646ec4f1723a2b634d44e4e1">index2_data</a> () [j]) += e2.<a class="code" href="a00054.html#a670a638e0cd9e1d68f9120c3d19c1987">value_data</a> () [j] * e1 () (i);
<a name="l00308"></a>00308 }
<a name="l00309"></a>00309 <span class="keywordflow">return</span> v;
<a name="l00310"></a>00310 }
<a name="l00311"></a>00311
<a name="l00312"></a>00312 <span class="comment">// Dispatcher</span>
<a name="l00313"></a>00313 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> T2, <span class="keyword">class</span> L2, <span class="keyword">class</span> IA2, <span class="keyword">class</span> TA2&gt;
<a name="l00314"></a>00314 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00315"></a>00315 V &amp;
<a name="l00316"></a><a class="code" href="a00595.html#ab2d95991c90bcf63a586baf85e849b92">00316</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00317"></a>00317 <span class="keyword">const</span> <a class="code" href="a00054.html">compressed_matrix&lt;T2, L2, 0, IA2, TA2&gt;</a> &amp;e2,
<a name="l00318"></a>00318 V &amp;v, <span class="keywordtype">bool</span> init = <span class="keyword">true</span>) {
<a name="l00319"></a>00319 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::value_type value_type;
<a name="l00320"></a>00320 <span class="keyword">typedef</span> <span class="keyword">typename</span> L2::orientation_category orientation_category;
<a name="l00321"></a>00321
<a name="l00322"></a>00322 <span class="keywordflow">if</span> (init)
<a name="l00323"></a>00323 v.assign (<a class="code" href="a00590.html" title="A zero vector of type T and a given size A zero vector of type T and a given size. This is a virtual vector in the sense that no memory is allocated for storing the zero values: it still acts like any other vector. However assigning values to it will not change the zero vector into a normal vector. It must first be assigned to another normal vector by any suitable means. Its memory footprint is constant.">zero_vector&lt;value_type&gt;</a> (e2.<a class="code" href="a00054.html#ad15fb24224b55fb297c486ee729999a1">size2</a> ()));
<a name="l00324"></a>00324 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00325"></a>00325 <span class="preprocessor"></span> <a class="code" href="a00481.html" title="A dense vector of values of type T.">vector&lt;value_type&gt;</a> cv (v);
<a name="l00326"></a>00326 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00465.html#a8212d3d2deb6273ae2006409c81ef720">type_traits&lt;value_type&gt;::real_type</a> real_type;
<a name="l00327"></a>00327 real_type verrorbound (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (v) + <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e1) * <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e2));
<a name="l00328"></a>00328 indexing_vector_assign&lt;scalar_plus_assign&gt; (cv, <a class="code" href="a00595.html#a80a491b0d654ad0d661a7ed3b272db88">prod</a> (e1, e2));
<a name="l00329"></a>00329 <span class="preprocessor">#endif</span>
<a name="l00330"></a>00330 <span class="preprocessor"></span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, v, orientation_category ());
<a name="l00331"></a>00331 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00332"></a>00332 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (v - cv) &lt;= 2 * std::numeric_limits&lt;real_type&gt;::epsilon () * verrorbound, <a class="code" href="a00178.html" title="Expception raised when some interal errors occurs like computations errors, zeros values where you sh...">internal_logic</a> ());
<a name="l00333"></a>00333 <span class="preprocessor">#endif</span>
<a name="l00334"></a>00334 <span class="preprocessor"></span> <span class="keywordflow">return</span> v;
<a name="l00335"></a>00335 }
<a name="l00336"></a>00336 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> T2, <span class="keyword">class</span> L2, <span class="keyword">class</span> IA2, <span class="keyword">class</span> TA2&gt;
<a name="l00337"></a>00337 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00338"></a>00338 V
<a name="l00339"></a><a class="code" href="a00595.html#a0b96426733ad8e68c67e0bbee264c95f">00339</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00340"></a>00340 <span class="keyword">const</span> <a class="code" href="a00054.html">compressed_matrix&lt;T2, L2, 0, IA2, TA2&gt;</a> &amp;e2) {
<a name="l00341"></a>00341 <span class="keyword">typedef</span> V vector_type;
<a name="l00342"></a>00342
<a name="l00343"></a>00343 vector_type v (e2.<a class="code" href="a00054.html#ad15fb24224b55fb297c486ee729999a1">size2</a> ());
<a name="l00344"></a>00344 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, v, <span class="keyword">true</span>);
<a name="l00345"></a>00345 }
<a name="l00346"></a>00346
<a name="l00347"></a>00347 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00348"></a>00348 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00349"></a>00349 V &amp;
<a name="l00350"></a><a class="code" href="a00595.html#ad6ad108160aaa47c2e815b2cebf39ff4">00350</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00351"></a>00351 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00352"></a>00352 V &amp;v, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) {
<a name="l00353"></a>00353 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00354"></a>00354 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00355"></a>00355 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::size_type size_type;
<a name="l00356"></a>00356
<a name="l00357"></a>00357 <span class="keyword">typename</span> expression2_type::const_iterator2 it2 (e2 ().<a class="code" href="a00595.html#a0a5c2ce4e11de4e7ea5ccd122073052c" title="An object generator that returns a begin2 manipulator to be used to traverse a matrix.">begin2</a> ());
<a name="l00358"></a>00358 <span class="keyword">typename</span> expression2_type::const_iterator2 it2_end (e2 ().end2 ());
<a name="l00359"></a>00359 <span class="keywordflow">while</span> (it2 != it2_end) {
<a name="l00360"></a>00360 size_type index2 (it2.index2 ());
<a name="l00361"></a>00361 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span>
<a name="l00362"></a>00362 <span class="preprocessor"></span> <span class="keyword">typename</span> expression2_type::const_iterator1 it1 (it2.begin ());
<a name="l00363"></a>00363 <span class="keyword">typename</span> expression2_type::const_iterator1 it1_end (it2.end ());
<a name="l00364"></a>00364 <span class="preprocessor">#else</span>
<a name="l00365"></a>00365 <span class="preprocessor"></span> <span class="keyword">typename</span> expression2_type::const_iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">boost::numeric::ublas::begin</a> (it2, iterator2_tag ()));
<a name="l00366"></a>00366 <span class="keyword">typename</span> expression2_type::const_iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">boost::numeric::ublas::end</a> (it2, iterator2_tag ()));
<a name="l00367"></a>00367 <span class="preprocessor">#endif</span>
<a name="l00368"></a>00368 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1 != it1_end) {
<a name="l00369"></a>00369 v (index2) += *it1 * e1 () (it1.index1 ());
<a name="l00370"></a>00370 ++ it1;
<a name="l00371"></a>00371 }
<a name="l00372"></a>00372 ++ it2;
<a name="l00373"></a>00373 }
<a name="l00374"></a>00374 <span class="keywordflow">return</span> v;
<a name="l00375"></a>00375 }
<a name="l00376"></a>00376
<a name="l00377"></a>00377 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00378"></a>00378 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00379"></a>00379 V &amp;
<a name="l00380"></a><a class="code" href="a00595.html#a0b07d369b6ac9e9e3679911eae0b4106">00380</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00381"></a>00381 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00382"></a>00382 V &amp;v, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) {
<a name="l00383"></a>00383 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00384"></a>00384 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00385"></a>00385 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::size_type size_type;
<a name="l00386"></a>00386
<a name="l00387"></a>00387 <span class="keyword">typename</span> expression2_type::const_iterator1 it1 (e2 ().<a class="code" href="a00595.html#a006ba58a3f4c88d8e8e76e44db481757" title="An object generator that returns a begin1 manipulator.">begin1</a> ());
<a name="l00388"></a>00388 <span class="keyword">typename</span> expression2_type::const_iterator1 it1_end (e2 ().end1 ());
<a name="l00389"></a>00389 <span class="keywordflow">while</span> (it1 != it1_end) {
<a name="l00390"></a>00390 size_type index1 (it1.index1 ());
<a name="l00391"></a>00391 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span>
<a name="l00392"></a>00392 <span class="preprocessor"></span> <span class="keyword">typename</span> expression2_type::const_iterator2 it2 (it1.begin ());
<a name="l00393"></a>00393 <span class="keyword">typename</span> expression2_type::const_iterator2 it2_end (it1.end ());
<a name="l00394"></a>00394 <span class="preprocessor">#else</span>
<a name="l00395"></a>00395 <span class="preprocessor"></span> <span class="keyword">typename</span> expression2_type::const_iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">boost::numeric::ublas::begin</a> (it1, iterator1_tag ()));
<a name="l00396"></a>00396 <span class="keyword">typename</span> expression2_type::const_iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">boost::numeric::ublas::end</a> (it1, iterator1_tag ()));
<a name="l00397"></a>00397 <span class="preprocessor">#endif</span>
<a name="l00398"></a>00398 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2 != it2_end) {
<a name="l00399"></a>00399 v (it2.index2 ()) += *it2 * e1 () (index1);
<a name="l00400"></a>00400 ++ it2;
<a name="l00401"></a>00401 }
<a name="l00402"></a>00402 ++ it1;
<a name="l00403"></a>00403 }
<a name="l00404"></a>00404 <span class="keywordflow">return</span> v;
<a name="l00405"></a>00405 }
<a name="l00406"></a>00406
<a name="l00407"></a>00407 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00408"></a>00408 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00409"></a>00409 V &amp;
<a name="l00410"></a><a class="code" href="a00595.html#a11c4694e9362e9c052e3a6ddf3d8a896">00410</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00411"></a>00411 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00412"></a>00412 V &amp;v, <a class="code" href="a00408.html">sparse_bidirectional_iterator_tag</a>) {
<a name="l00413"></a>00413 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00414"></a>00414 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00415"></a>00415 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::size_type size_type;
<a name="l00416"></a>00416
<a name="l00417"></a>00417 <span class="keyword">typename</span> expression1_type::const_iterator it (e1 ().<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">begin</a> ());
<a name="l00418"></a>00418 <span class="keyword">typename</span> expression1_type::const_iterator it_end (e1 ().<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">end</a> ());
<a name="l00419"></a>00419 <span class="keywordflow">while</span> (it != it_end) {
<a name="l00420"></a>00420 v.plus_assign (*it * <a class="code" href="a00595.html#af8da104f49e2652e2c036c431dec2879">row</a> (e2 (), it.index ()));
<a name="l00421"></a>00421 ++ it;
<a name="l00422"></a>00422 }
<a name="l00423"></a>00423 <span class="keywordflow">return</span> v;
<a name="l00424"></a>00424 }
<a name="l00425"></a>00425
<a name="l00426"></a>00426 <span class="comment">// Dispatcher</span>
<a name="l00427"></a>00427 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00428"></a>00428 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00429"></a>00429 V &amp;
<a name="l00430"></a><a class="code" href="a00595.html#a9bccb09061820966bcad97beebeb60b2">00430</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00431"></a>00431 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00432"></a>00432 V &amp;v, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a>) {
<a name="l00433"></a>00433 <span class="keyword">typedef</span> <span class="keyword">typename</span> E2::orientation_category orientation_category;
<a name="l00434"></a>00434 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, v, <a class="code" href="a00361.html">packed_random_access_iterator_tag</a> (), orientation_category ());
<a name="l00435"></a>00435 }
<a name="l00436"></a>00436
<a name="l00437"></a>00437
<a name="l00463"></a>00463 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00464"></a>00464 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00465"></a>00465 V &amp;
<a name="l00466"></a><a class="code" href="a00664.html#ga6e42eb83cb6df1f6ba43d5cbd4d09f52">00466</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00467"></a>00467 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00468"></a>00468 V &amp;v, <span class="keywordtype">bool</span> init = <span class="keyword">true</span>) {
<a name="l00469"></a>00469 <span class="keyword">typedef</span> <span class="keyword">typename</span> V::value_type value_type;
<a name="l00470"></a>00470 <span class="keyword">typedef</span> <span class="keyword">typename</span> E1::const_iterator::iterator_category iterator_category;
<a name="l00471"></a>00471
<a name="l00472"></a>00472 <span class="keywordflow">if</span> (init)
<a name="l00473"></a>00473 v.assign (<a class="code" href="a00590.html" title="A zero vector of type T and a given size A zero vector of type T and a given size. This is a virtual vector in the sense that no memory is allocated for storing the zero values: it still acts like any other vector. However assigning values to it will not change the zero vector into a normal vector. It must first be assigned to another normal vector by any suitable means. Its memory footprint is constant.">zero_vector&lt;value_type&gt;</a> (e2 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ()));
<a name="l00474"></a>00474 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00475"></a>00475 <span class="preprocessor"></span> <a class="code" href="a00481.html" title="A dense vector of values of type T.">vector&lt;value_type&gt;</a> cv (v);
<a name="l00476"></a>00476 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00465.html#a8212d3d2deb6273ae2006409c81ef720">type_traits&lt;value_type&gt;::real_type</a> real_type;
<a name="l00477"></a>00477 real_type verrorbound (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (v) + <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e1) * <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e2));
<a name="l00478"></a>00478 indexing_vector_assign&lt;scalar_plus_assign&gt; (cv, <a class="code" href="a00595.html#a80a491b0d654ad0d661a7ed3b272db88">prod</a> (e1, e2));
<a name="l00479"></a>00479 <span class="preprocessor">#endif</span>
<a name="l00480"></a>00480 <span class="preprocessor"></span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, v, iterator_category ());
<a name="l00481"></a>00481 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00482"></a>00482 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (v - cv) &lt;= 2 * std::numeric_limits&lt;real_type&gt;::epsilon () * verrorbound, <a class="code" href="a00178.html" title="Expception raised when some interal errors occurs like computations errors, zeros values where you sh...">internal_logic</a> ());
<a name="l00483"></a>00483 <span class="preprocessor">#endif</span>
<a name="l00484"></a>00484 <span class="preprocessor"></span> <span class="keywordflow">return</span> v;
<a name="l00485"></a>00485 }
<a name="l00486"></a>00486 <span class="keyword">template</span>&lt;<span class="keyword">class</span> V, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00487"></a>00487 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00488"></a>00488 V
<a name="l00489"></a><a class="code" href="a00595.html#ae9a4a8eddd195adece6b16fda79d4a09">00489</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00507.html" title="Base class for Vector Expression models.">vector_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00490"></a>00490 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2) {
<a name="l00491"></a>00491 <span class="keyword">typedef</span> V vector_type;
<a name="l00492"></a>00492
<a name="l00493"></a>00493 vector_type v (e2 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ());
<a name="l00494"></a>00494 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, v, <span class="keyword">true</span>);
<a name="l00495"></a>00495 }
<a name="l00496"></a>00496
<a name="l00497"></a>00497 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2, <span class="keyword">class</span> TRI&gt;
<a name="l00498"></a>00498 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00499"></a>00499 M &amp;
<a name="l00500"></a><a class="code" href="a00595.html#ac2b20629f1a7a96a5ea996a231a6fb4e">00500</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00501"></a>00501 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00502"></a>00502 M &amp;m, TRI,
<a name="l00503"></a>00503 <a class="code" href="a00081.html">dense_proxy_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) {
<a name="l00504"></a>00504 <span class="keyword">typedef</span> M matrix_type;
<a name="l00505"></a>00505 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00506"></a>00506 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00507"></a>00507 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type;
<a name="l00508"></a>00508 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type;
<a name="l00509"></a>00509
<a name="l00510"></a>00510 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00511"></a>00511 <span class="preprocessor"></span> <a class="code" href="a00218.html" title="A dense matrix of values of type T.">matrix&lt;value_type, row_major&gt;</a> cm (m);
<a name="l00512"></a>00512 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00465.html#a8212d3d2deb6273ae2006409c81ef720">type_traits&lt;value_type&gt;::real_type</a> real_type;
<a name="l00513"></a>00513 real_type merrorbound (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m) + <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e1) * <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e2));
<a name="l00514"></a>00514 indexing_matrix_assign&lt;scalar_plus_assign&gt; (cm, <a class="code" href="a00595.html#a80a491b0d654ad0d661a7ed3b272db88">prod</a> (e1, e2), <a class="code" href="a00369.html">row_major_tag</a> ());
<a name="l00515"></a>00515 <span class="preprocessor">#endif</span>
<a name="l00516"></a>00516 <span class="preprocessor"></span> size_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (e1 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> ());
<a name="l00517"></a>00517 size_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (e1 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ());
<a name="l00518"></a>00518 <span class="keywordflow">for</span> (size_type i = 0; i &lt; <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; ++ i)
<a name="l00519"></a>00519 <span class="keywordflow">for</span> (size_type j = 0; j &lt; <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; ++ j)
<a name="l00520"></a>00520 <a class="code" href="a00595.html#af8da104f49e2652e2c036c431dec2879">row</a> (m, i).plus_assign (e1 () (i, j) * <a class="code" href="a00595.html#af8da104f49e2652e2c036c431dec2879">row</a> (e2 (), j));
<a name="l00521"></a>00521 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00522"></a>00522 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m - cm) &lt;= 2 * std::numeric_limits&lt;real_type&gt;::epsilon () * merrorbound, <a class="code" href="a00178.html" title="Expception raised when some interal errors occurs like computations errors, zeros values where you sh...">internal_logic</a> ());
<a name="l00523"></a>00523 <span class="preprocessor">#endif</span>
<a name="l00524"></a>00524 <span class="preprocessor"></span> <span class="keywordflow">return</span> m;
<a name="l00525"></a>00525 }
<a name="l00526"></a>00526 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2, <span class="keyword">class</span> TRI&gt;
<a name="l00527"></a>00527 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00528"></a>00528 M &amp;
<a name="l00529"></a><a class="code" href="a00595.html#af61a851193d3f022a717c44436e04463">00529</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00530"></a>00530 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00531"></a>00531 M &amp;m, TRI,
<a name="l00532"></a>00532 <a class="code" href="a00409.html">sparse_proxy_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) {
<a name="l00533"></a>00533 <span class="keyword">typedef</span> M matrix_type;
<a name="l00534"></a>00534 <span class="keyword">typedef</span> TRI triangular_restriction;
<a name="l00535"></a>00535 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00536"></a>00536 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00537"></a>00537 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type;
<a name="l00538"></a>00538 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type;
<a name="l00539"></a>00539
<a name="l00540"></a>00540 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00541"></a>00541 <span class="preprocessor"></span> <a class="code" href="a00218.html" title="A dense matrix of values of type T.">matrix&lt;value_type, row_major&gt;</a> cm (m);
<a name="l00542"></a>00542 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00465.html#a8212d3d2deb6273ae2006409c81ef720">type_traits&lt;value_type&gt;::real_type</a> real_type;
<a name="l00543"></a>00543 real_type merrorbound (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m) + <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e1) * <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e2));
<a name="l00544"></a>00544 indexing_matrix_assign&lt;scalar_plus_assign&gt; (cm, <a class="code" href="a00595.html#a80a491b0d654ad0d661a7ed3b272db88">prod</a> (e1, e2), <a class="code" href="a00369.html">row_major_tag</a> ());
<a name="l00545"></a>00545 <span class="preprocessor">#endif</span>
<a name="l00546"></a>00546 <span class="preprocessor"></span> <span class="keyword">typename</span> expression1_type::const_iterator1 it1 (e1 ().<a class="code" href="a00595.html#a006ba58a3f4c88d8e8e76e44db481757" title="An object generator that returns a begin1 manipulator.">begin1</a> ());
<a name="l00547"></a>00547 <span class="keyword">typename</span> expression1_type::const_iterator1 it1_end (e1 ().end1 ());
<a name="l00548"></a>00548 <span class="keywordflow">while</span> (it1 != it1_end) {
<a name="l00549"></a>00549 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span>
<a name="l00550"></a>00550 <span class="preprocessor"></span> <span class="keyword">typename</span> expression1_type::const_iterator2 it2 (it1.begin ());
<a name="l00551"></a>00551 <span class="keyword">typename</span> expression1_type::const_iterator2 it2_end (it1.end ());
<a name="l00552"></a>00552 <span class="preprocessor">#else</span>
<a name="l00553"></a>00553 <span class="preprocessor"></span> <span class="keyword">typename</span> expression1_type::const_iterator2 it2 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">boost::numeric::ublas::begin</a> (it1, iterator1_tag ()));
<a name="l00554"></a>00554 <span class="keyword">typename</span> expression1_type::const_iterator2 it2_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">boost::numeric::ublas::end</a> (it1, iterator1_tag ()));
<a name="l00555"></a>00555 <span class="preprocessor">#endif</span>
<a name="l00556"></a>00556 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it2 != it2_end) {
<a name="l00557"></a>00557 <span class="comment">// row (m, it1.index1 ()).plus_assign (*it2 * row (e2 (), it2.index2 ()));</span>
<a name="l00558"></a>00558 <a class="code" href="a00276.html">matrix_row&lt;expression2_type&gt;</a> mr (e2 (), it2.index2 ());
<a name="l00559"></a>00559 <span class="keyword">typename</span> <a class="code" href="a00277.html">matrix_row&lt;expression2_type&gt;::const_iterator</a> itr (mr.begin ());
<a name="l00560"></a>00560 <span class="keyword">typename</span> <a class="code" href="a00277.html">matrix_row&lt;expression2_type&gt;::const_iterator</a> itr_end (mr.end ());
<a name="l00561"></a>00561 <span class="keywordflow">while</span> (itr != itr_end) {
<a name="l00562"></a>00562 <span class="keywordflow">if</span> (triangular_restriction::other (it1.index1 (), itr.index ()))
<a name="l00563"></a>00563 m (it1.index1 (), itr.index ()) += *it2 * *itr;
<a name="l00564"></a>00564 ++ itr;
<a name="l00565"></a>00565 }
<a name="l00566"></a>00566 ++ it2;
<a name="l00567"></a>00567 }
<a name="l00568"></a>00568 ++ it1;
<a name="l00569"></a>00569 }
<a name="l00570"></a>00570 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00571"></a>00571 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m - cm) &lt;= 2 * std::numeric_limits&lt;real_type&gt;::epsilon () * merrorbound, <a class="code" href="a00178.html" title="Expception raised when some interal errors occurs like computations errors, zeros values where you sh...">internal_logic</a> ());
<a name="l00572"></a>00572 <span class="preprocessor">#endif</span>
<a name="l00573"></a>00573 <span class="preprocessor"></span> <span class="keywordflow">return</span> m;
<a name="l00574"></a>00574 }
<a name="l00575"></a>00575
<a name="l00576"></a>00576 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2, <span class="keyword">class</span> TRI&gt;
<a name="l00577"></a>00577 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00578"></a>00578 M &amp;
<a name="l00579"></a><a class="code" href="a00595.html#accff4699f707cd7ec64d518d423324be">00579</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00580"></a>00580 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00581"></a>00581 M &amp;m, TRI,
<a name="l00582"></a>00582 <a class="code" href="a00081.html">dense_proxy_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) {
<a name="l00583"></a>00583 <span class="keyword">typedef</span> M matrix_type;
<a name="l00584"></a>00584 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00585"></a>00585 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00586"></a>00586 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type;
<a name="l00587"></a>00587 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type;
<a name="l00588"></a>00588
<a name="l00589"></a>00589 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00590"></a>00590 <span class="preprocessor"></span> <a class="code" href="a00218.html" title="A dense matrix of values of type T.">matrix&lt;value_type, column_major&gt;</a> cm (m);
<a name="l00591"></a>00591 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00465.html#a8212d3d2deb6273ae2006409c81ef720">type_traits&lt;value_type&gt;::real_type</a> real_type;
<a name="l00592"></a>00592 real_type merrorbound (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m) + <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e1) * <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e2));
<a name="l00593"></a>00593 indexing_matrix_assign&lt;scalar_plus_assign&gt; (cm, <a class="code" href="a00595.html#a80a491b0d654ad0d661a7ed3b272db88">prod</a> (e1, e2), <a class="code" href="a00052.html">column_major_tag</a> ());
<a name="l00594"></a>00594 <span class="preprocessor">#endif</span>
<a name="l00595"></a>00595 <span class="preprocessor"></span> size_type <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (e2 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> ());
<a name="l00596"></a>00596 size_type <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (e2 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ());
<a name="l00597"></a>00597 <span class="keywordflow">for</span> (size_type j = 0; j &lt; <a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a>; ++ j)
<a name="l00598"></a>00598 <span class="keywordflow">for</span> (size_type i = 0; i &lt; <a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a>; ++ i)
<a name="l00599"></a>00599 <a class="code" href="a00595.html#a401950b707ff8a1209616085404065c8">column</a> (m, j).plus_assign (e2 () (i, j) * <a class="code" href="a00595.html#a401950b707ff8a1209616085404065c8">column</a> (e1 (), i));
<a name="l00600"></a>00600 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00601"></a>00601 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m - cm) &lt;= 2 * std::numeric_limits&lt;real_type&gt;::epsilon () * merrorbound, <a class="code" href="a00178.html" title="Expception raised when some interal errors occurs like computations errors, zeros values where you sh...">internal_logic</a> ());
<a name="l00602"></a>00602 <span class="preprocessor">#endif</span>
<a name="l00603"></a>00603 <span class="preprocessor"></span> <span class="keywordflow">return</span> m;
<a name="l00604"></a>00604 }
<a name="l00605"></a>00605 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2, <span class="keyword">class</span> TRI&gt;
<a name="l00606"></a>00606 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00607"></a>00607 M &amp;
<a name="l00608"></a><a class="code" href="a00595.html#a7582e33b96f725ca25e2f003c828cb7a">00608</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00609"></a>00609 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00610"></a>00610 M &amp;m, TRI,
<a name="l00611"></a>00611 <a class="code" href="a00409.html">sparse_proxy_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) {
<a name="l00612"></a>00612 <span class="keyword">typedef</span> M matrix_type;
<a name="l00613"></a>00613 <span class="keyword">typedef</span> TRI triangular_restriction;
<a name="l00614"></a>00614 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00615"></a>00615 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00616"></a>00616 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type;
<a name="l00617"></a>00617 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type;
<a name="l00618"></a>00618
<a name="l00619"></a>00619 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00620"></a>00620 <span class="preprocessor"></span> <a class="code" href="a00218.html" title="A dense matrix of values of type T.">matrix&lt;value_type, column_major&gt;</a> cm (m);
<a name="l00621"></a>00621 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00465.html#a8212d3d2deb6273ae2006409c81ef720">type_traits&lt;value_type&gt;::real_type</a> real_type;
<a name="l00622"></a>00622 real_type merrorbound (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m) + <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e1) * <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e2));
<a name="l00623"></a>00623 indexing_matrix_assign&lt;scalar_plus_assign&gt; (cm, <a class="code" href="a00595.html#a80a491b0d654ad0d661a7ed3b272db88">prod</a> (e1, e2), <a class="code" href="a00052.html">column_major_tag</a> ());
<a name="l00624"></a>00624 <span class="preprocessor">#endif</span>
<a name="l00625"></a>00625 <span class="preprocessor"></span> <span class="keyword">typename</span> expression2_type::const_iterator2 it2 (e2 ().<a class="code" href="a00595.html#a0a5c2ce4e11de4e7ea5ccd122073052c" title="An object generator that returns a begin2 manipulator to be used to traverse a matrix.">begin2</a> ());
<a name="l00626"></a>00626 <span class="keyword">typename</span> expression2_type::const_iterator2 it2_end (e2 ().end2 ());
<a name="l00627"></a>00627 <span class="keywordflow">while</span> (it2 != it2_end) {
<a name="l00628"></a>00628 <span class="preprocessor">#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION</span>
<a name="l00629"></a>00629 <span class="preprocessor"></span> <span class="keyword">typename</span> expression2_type::const_iterator1 it1 (it2.begin ());
<a name="l00630"></a>00630 <span class="keyword">typename</span> expression2_type::const_iterator1 it1_end (it2.end ());
<a name="l00631"></a>00631 <span class="preprocessor">#else</span>
<a name="l00632"></a>00632 <span class="preprocessor"></span> <span class="keyword">typename</span> expression2_type::const_iterator1 it1 (<a class="code" href="a00595.html#ae2297dd9051333c2ec1d0f63175f66fe" title="An iterator to the first element of the given vector expression.">boost::numeric::ublas::begin</a> (it2, iterator2_tag ()));
<a name="l00633"></a>00633 <span class="keyword">typename</span> expression2_type::const_iterator1 it1_end (<a class="code" href="a00595.html#a5e8a7fc1352cd3e148064608dad9f38d" title="An iterator to the last element of the given vector expression.">boost::numeric::ublas::end</a> (it2, iterator2_tag ()));
<a name="l00634"></a>00634 <span class="preprocessor">#endif</span>
<a name="l00635"></a>00635 <span class="preprocessor"></span> <span class="keywordflow">while</span> (it1 != it1_end) {
<a name="l00636"></a>00636 <span class="comment">// column (m, it2.index2 ()).plus_assign (*it1 * column (e1 (), it1.index1 ()));</span>
<a name="l00637"></a>00637 <a class="code" href="a00247.html">matrix_column&lt;expression1_type&gt;</a> mc (e1 (), it1.index1 ());
<a name="l00638"></a>00638 <span class="keyword">typename</span> <a class="code" href="a00248.html">matrix_column&lt;expression1_type&gt;::const_iterator</a> itc (mc.begin ());
<a name="l00639"></a>00639 <span class="keyword">typename</span> <a class="code" href="a00248.html">matrix_column&lt;expression1_type&gt;::const_iterator</a> itc_end (mc.end ());
<a name="l00640"></a>00640 <span class="keywordflow">while</span> (itc != itc_end) {
<a name="l00641"></a>00641 <span class="keywordflow">if</span>(triangular_restriction::other (itc.index (), it2.index2 ()))
<a name="l00642"></a>00642 m (itc.index (), it2.index2 ()) += *it1 * *itc;
<a name="l00643"></a>00643 ++ itc;
<a name="l00644"></a>00644 }
<a name="l00645"></a>00645 ++ it1;
<a name="l00646"></a>00646 }
<a name="l00647"></a>00647 ++ it2;
<a name="l00648"></a>00648 }
<a name="l00649"></a>00649 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00650"></a>00650 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m - cm) &lt;= 2 * std::numeric_limits&lt;real_type&gt;::epsilon () * merrorbound, <a class="code" href="a00178.html" title="Expception raised when some interal errors occurs like computations errors, zeros values where you sh...">internal_logic</a> ());
<a name="l00651"></a>00651 <span class="preprocessor">#endif</span>
<a name="l00652"></a>00652 <span class="preprocessor"></span> <span class="keywordflow">return</span> m;
<a name="l00653"></a>00653 }
<a name="l00654"></a>00654
<a name="l00655"></a>00655 <span class="comment">// Dispatcher</span>
<a name="l00656"></a>00656 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2, <span class="keyword">class</span> TRI&gt;
<a name="l00657"></a>00657 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00658"></a>00658 M &amp;
<a name="l00659"></a><a class="code" href="a00595.html#adad8603f879e7b5b48ae6cfe6413dbb2">00659</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00660"></a>00660 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00661"></a>00661 M &amp;m, TRI, <span class="keywordtype">bool</span> init = <span class="keyword">true</span>) {
<a name="l00662"></a>00662 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type;
<a name="l00663"></a>00663 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::storage_category storage_category;
<a name="l00664"></a>00664 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::orientation_category orientation_category;
<a name="l00665"></a>00665 <span class="keyword">typedef</span> TRI triangular_restriction;
<a name="l00666"></a>00666
<a name="l00667"></a>00667 <span class="keywordflow">if</span> (init)
<a name="l00668"></a>00668 m.assign (<a class="code" href="a00587.html" title="A matrix with all values of type T equal to zero.">zero_matrix&lt;value_type&gt;</a> (e1 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (), e2 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ()));
<a name="l00669"></a>00669 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, m, triangular_restriction (), storage_category (), orientation_category ());
<a name="l00670"></a>00670 }
<a name="l00671"></a>00671 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2, <span class="keyword">class</span> TRI&gt;
<a name="l00672"></a>00672 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00673"></a>00673 M
<a name="l00674"></a><a class="code" href="a00595.html#a19f64e65ac20fa17249ab5248265b487">00674</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00675"></a>00675 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00676"></a>00676 TRI) {
<a name="l00677"></a>00677 <span class="keyword">typedef</span> M matrix_type;
<a name="l00678"></a>00678 <span class="keyword">typedef</span> TRI triangular_restriction;
<a name="l00679"></a>00679
<a name="l00680"></a>00680 matrix_type m (e1 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (), e2 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ());
<a name="l00681"></a>00681 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, m, triangular_restriction (), <span class="keyword">true</span>);
<a name="l00682"></a>00682 }
<a name="l00683"></a>00683
<a name="l00708"></a>00708 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00709"></a>00709 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00710"></a>00710 M &amp;
<a name="l00711"></a><a class="code" href="a00665.html#ga51445aacae6dc121e5a83e1b97bdf75a">00711</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00712"></a>00712 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00713"></a>00713 M &amp;m, <span class="keywordtype">bool</span> init = <span class="keyword">true</span>) {
<a name="l00714"></a>00714 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type;
<a name="l00715"></a>00715 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::storage_category storage_category;
<a name="l00716"></a>00716 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::orientation_category orientation_category;
<a name="l00717"></a>00717
<a name="l00718"></a>00718 <span class="keywordflow">if</span> (init)
<a name="l00719"></a>00719 m.assign (<a class="code" href="a00587.html" title="A matrix with all values of type T equal to zero.">zero_matrix&lt;value_type&gt;</a> (e1 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (), e2 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ()));
<a name="l00720"></a>00720 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, m, <a class="code" href="a00028.html">full</a> (), storage_category (), orientation_category ());
<a name="l00721"></a>00721 }
<a name="l00722"></a>00722 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00723"></a>00723 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00724"></a>00724 M
<a name="l00725"></a><a class="code" href="a00595.html#a8a89346e0a8b351f7e543016184ac6c4">00725</a> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00726"></a>00726 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2) {
<a name="l00727"></a>00727 <span class="keyword">typedef</span> M matrix_type;
<a name="l00728"></a>00728
<a name="l00729"></a>00729 matrix_type m (e1 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (), e2 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ());
<a name="l00730"></a>00730 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a7133ae1f46e1635114bae988af810b8c">axpy_prod</a> (e1, e2, m, <a class="code" href="a00028.html">full</a> (), <span class="keyword">true</span>);
<a name="l00731"></a>00731 }
<a name="l00732"></a>00732
<a name="l00733"></a>00733
<a name="l00734"></a>00734 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00735"></a>00735 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00736"></a>00736 M &amp;
<a name="l00737"></a><a class="code" href="a00595.html#a1c868685e40b575a760a13f6afdd19bd">00737</a> <a class="code" href="a00595.html#a1c868685e40b575a760a13f6afdd19bd">opb_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00738"></a>00738 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00739"></a>00739 M &amp;m,
<a name="l00740"></a>00740 <a class="code" href="a00081.html">dense_proxy_tag</a>, <a class="code" href="a00369.html">row_major_tag</a>) {
<a name="l00741"></a>00741 <span class="keyword">typedef</span> M matrix_type;
<a name="l00742"></a>00742 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00743"></a>00743 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00744"></a>00744 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type;
<a name="l00745"></a>00745 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type;
<a name="l00746"></a>00746
<a name="l00747"></a>00747 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00748"></a>00748 <span class="preprocessor"></span> <a class="code" href="a00218.html" title="A dense matrix of values of type T.">matrix&lt;value_type, row_major&gt;</a> cm (m);
<a name="l00749"></a>00749 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00465.html#a8212d3d2deb6273ae2006409c81ef720">type_traits&lt;value_type&gt;::real_type</a> real_type;
<a name="l00750"></a>00750 real_type merrorbound (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m) + <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e1) * <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e2));
<a name="l00751"></a>00751 indexing_matrix_assign&lt;scalar_plus_assign&gt; (cm, <a class="code" href="a00595.html#a80a491b0d654ad0d661a7ed3b272db88">prod</a> (e1, e2), <a class="code" href="a00369.html">row_major_tag</a> ());
<a name="l00752"></a>00752 <span class="preprocessor">#endif</span>
<a name="l00753"></a>00753 <span class="preprocessor"></span> size_type <a class="code" href="a00595.html#a21019ef1d90c1854094dffa247fe1daf" title="Return the number of columns.">size</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (e1 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (), e2 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> ()));
<a name="l00754"></a>00754 <span class="keywordflow">for</span> (size_type k = 0; k &lt; <a class="code" href="a00595.html#a21019ef1d90c1854094dffa247fe1daf" title="Return the number of columns.">size</a>; ++ k) {
<a name="l00755"></a>00755 <a class="code" href="a00481.html" title="A dense vector of values of type T.">vector&lt;value_type&gt;</a> ce1 (<a class="code" href="a00595.html#a401950b707ff8a1209616085404065c8">column</a> (e1 (), k));
<a name="l00756"></a>00756 <a class="code" href="a00481.html" title="A dense vector of values of type T.">vector&lt;value_type&gt;</a> re2 (<a class="code" href="a00595.html#af8da104f49e2652e2c036c431dec2879">row</a> (e2 (), k));
<a name="l00757"></a>00757 m.plus_assign (<a class="code" href="a00595.html#a1ec699972aadfd0a7323cd130fca8fa3">outer_prod</a> (ce1, re2));
<a name="l00758"></a>00758 }
<a name="l00759"></a>00759 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00760"></a>00760 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m - cm) &lt;= 2 * std::numeric_limits&lt;real_type&gt;::epsilon () * merrorbound, <a class="code" href="a00178.html" title="Expception raised when some interal errors occurs like computations errors, zeros values where you sh...">internal_logic</a> ());
<a name="l00761"></a>00761 <span class="preprocessor">#endif</span>
<a name="l00762"></a>00762 <span class="preprocessor"></span> <span class="keywordflow">return</span> m;
<a name="l00763"></a>00763 }
<a name="l00764"></a>00764
<a name="l00765"></a>00765 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00766"></a>00766 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00767"></a>00767 M &amp;
<a name="l00768"></a><a class="code" href="a00595.html#adf504a7040b4df4f73704fd45b836d88">00768</a> <a class="code" href="a00595.html#a1c868685e40b575a760a13f6afdd19bd">opb_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00769"></a>00769 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00770"></a>00770 M &amp;m,
<a name="l00771"></a>00771 <a class="code" href="a00081.html">dense_proxy_tag</a>, <a class="code" href="a00052.html">column_major_tag</a>) {
<a name="l00772"></a>00772 <span class="keyword">typedef</span> M matrix_type;
<a name="l00773"></a>00773 <span class="keyword">typedef</span> <span class="keyword">const</span> E1 expression1_type;
<a name="l00774"></a>00774 <span class="keyword">typedef</span> <span class="keyword">const</span> E2 expression2_type;
<a name="l00775"></a>00775 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::size_type size_type;
<a name="l00776"></a>00776 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type;
<a name="l00777"></a>00777
<a name="l00778"></a>00778 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00779"></a>00779 <span class="preprocessor"></span> <a class="code" href="a00218.html" title="A dense matrix of values of type T.">matrix&lt;value_type, column_major&gt;</a> cm (m);
<a name="l00780"></a>00780 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="a00465.html#a8212d3d2deb6273ae2006409c81ef720">type_traits&lt;value_type&gt;::real_type</a> real_type;
<a name="l00781"></a>00781 real_type merrorbound (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m) + <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e1) * <a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (e2));
<a name="l00782"></a>00782 indexing_matrix_assign&lt;scalar_plus_assign&gt; (cm, <a class="code" href="a00595.html#a80a491b0d654ad0d661a7ed3b272db88">prod</a> (e1, e2), <a class="code" href="a00052.html">column_major_tag</a> ());
<a name="l00783"></a>00783 <span class="preprocessor">#endif</span>
<a name="l00784"></a>00784 <span class="preprocessor"></span> size_type <a class="code" href="a00595.html#a21019ef1d90c1854094dffa247fe1daf" title="Return the number of columns.">size</a> (<a class="code" href="a00610.html#ad7bb3e64acf4cd355a9985bdf879cf2a">BOOST_UBLAS_SAME</a> (e1 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> (), e2 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> ()));
<a name="l00785"></a>00785 <span class="keywordflow">for</span> (size_type k = 0; k &lt; <a class="code" href="a00595.html#a21019ef1d90c1854094dffa247fe1daf" title="Return the number of columns.">size</a>; ++ k) {
<a name="l00786"></a>00786 <a class="code" href="a00481.html" title="A dense vector of values of type T.">vector&lt;value_type&gt;</a> ce1 (<a class="code" href="a00595.html#a401950b707ff8a1209616085404065c8">column</a> (e1 (), k));
<a name="l00787"></a>00787 <a class="code" href="a00481.html" title="A dense vector of values of type T.">vector&lt;value_type&gt;</a> re2 (<a class="code" href="a00595.html#af8da104f49e2652e2c036c431dec2879">row</a> (e2 (), k));
<a name="l00788"></a>00788 m.plus_assign (<a class="code" href="a00595.html#a1ec699972aadfd0a7323cd130fca8fa3">outer_prod</a> (ce1, re2));
<a name="l00789"></a>00789 }
<a name="l00790"></a>00790 <span class="preprocessor">#if BOOST_UBLAS_TYPE_CHECK</span>
<a name="l00791"></a>00791 <span class="preprocessor"></span> <a class="code" href="a00610.html#aada705f9d1fd36fc1af3b703217ec69e">BOOST_UBLAS_CHECK</a> (<a class="code" href="a00595.html#a98dc7e95f16a0a34d4df93d630005d50">norm_1</a> (m - cm) &lt;= 2 * std::numeric_limits&lt;real_type&gt;::epsilon () * merrorbound, <a class="code" href="a00178.html" title="Expception raised when some interal errors occurs like computations errors, zeros values where you sh...">internal_logic</a> ());
<a name="l00792"></a>00792 <span class="preprocessor">#endif</span>
<a name="l00793"></a>00793 <span class="preprocessor"></span> <span class="keywordflow">return</span> m;
<a name="l00794"></a>00794 }
<a name="l00795"></a>00795
<a name="l00796"></a>00796 <span class="comment">// Dispatcher</span>
<a name="l00797"></a>00797
<a name="l00824"></a>00824 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00825"></a>00825 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00826"></a>00826 M &amp;
<a name="l00827"></a><a class="code" href="a00665.html#gaeab10916b6446ff98f65feb333611872">00827</a> <a class="code" href="a00595.html#a1c868685e40b575a760a13f6afdd19bd">opb_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00828"></a>00828 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2,
<a name="l00829"></a>00829 M &amp;m, <span class="keywordtype">bool</span> init = <span class="keyword">true</span>) {
<a name="l00830"></a>00830 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::value_type value_type;
<a name="l00831"></a>00831 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::storage_category storage_category;
<a name="l00832"></a>00832 <span class="keyword">typedef</span> <span class="keyword">typename</span> M::orientation_category orientation_category;
<a name="l00833"></a>00833
<a name="l00834"></a>00834 <span class="keywordflow">if</span> (init)
<a name="l00835"></a>00835 m.assign (<a class="code" href="a00587.html" title="A matrix with all values of type T equal to zero.">zero_matrix&lt;value_type&gt;</a> (e1 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (), e2 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ()));
<a name="l00836"></a>00836 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a1c868685e40b575a760a13f6afdd19bd">opb_prod</a> (e1, e2, m, storage_category (), orientation_category ());
<a name="l00837"></a>00837 }
<a name="l00838"></a>00838 <span class="keyword">template</span>&lt;<span class="keyword">class</span> M, <span class="keyword">class</span> E1, <span class="keyword">class</span> E2&gt;
<a name="l00839"></a>00839 <a class="code" href="a00603.html#a578c14139742374e9a04e5afcb6cd24c">BOOST_UBLAS_INLINE</a>
<a name="l00840"></a>00840 M
<a name="l00841"></a><a class="code" href="a00595.html#a24303f8b35b81d47af093c4c6ad4785b">00841</a> <a class="code" href="a00595.html#a1c868685e40b575a760a13f6afdd19bd">opb_prod</a> (<span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E1&gt;</a> &amp;e1,
<a name="l00842"></a>00842 <span class="keyword">const</span> <a class="code" href="a00251.html" title="Base class for Matrix Expression models.">matrix_expression&lt;E2&gt;</a> &amp;e2) {
<a name="l00843"></a>00843 <span class="keyword">typedef</span> M matrix_type;
<a name="l00844"></a>00844
<a name="l00845"></a>00845 matrix_type m (e1 ().<a class="code" href="a00658.html#a979596ba6e2373d596e34c2a73809cf6">size1</a> (), e2 ().<a class="code" href="a00658.html#a981c2ed31bf42bd03499d4ee32444141">size2</a> ());
<a name="l00846"></a>00846 <span class="keywordflow">return</span> <a class="code" href="a00595.html#a1c868685e40b575a760a13f6afdd19bd">opb_prod</a> (e1, e2, m, <span class="keyword">true</span>);
<a name="l00847"></a>00847 }
<a name="l00848"></a>00848
<a name="l00849"></a>00849 }}}
<a name="l00850"></a>00850
<a name="l00851"></a>00851 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="a00626.html">operation.hpp</a> </li>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<small>
<small>
<small>
<table width="100%">
<tr>
<td align="right">
Copyright &#169; 2010-2011 David Bellot - Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">Boost Software License, Version 1.0.</a>
</td>
</tr>
</table>
</small>
</small>
</small>