<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>CPPLapack: _dcovector-calc.hpp File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">CPPLapack
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <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>
<!-- 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>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="dir_a37d0dd275f7ec49ee26f1d33d1059f5.html">include</a>      </li>
      <li class="navelem"><a class="el" href="dir_5a2a76f0c5f47086739a6d5f090b15ae.html">_dcovector-</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">_dcovector-calc.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="__dcovector-calc_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classdrovector.html">drovector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__dcovector-calc_8hpp.html#afe5475fdf72e825c1fea5f306d686664">t</a> (const <a class="el" href="class__dcovector.html">_dcovector</a> &amp;covec)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__dcovector-calc_8hpp.html#a892d328603828a5d0a2acedc2c4db7bb">nrm2</a> (const <a class="el" href="class__dcovector.html">_dcovector</a> &amp;vec)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__dcovector-calc_8hpp.html#a250895c0528a387beace5e285fe82354">idamax</a> (const <a class="el" href="class__dcovector.html">_dcovector</a> &amp;vec)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="__dcovector-calc_8hpp.html#af6c2b89c85cc70c33b7028fb27bf3a0f">damax</a> (const <a class="el" href="class__dcovector.html">_dcovector</a> &amp;vec)</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="afe5475fdf72e825c1fea5f306d686664"></a><!-- doxytag: member="_dcovector&#45;calc.hpp::t" ref="afe5475fdf72e825c1fea5f306d686664" args="(const _dcovector &amp;covec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classdrovector.html">drovector</a> <a class="el" href="zrovector-calc_8hpp.html#ad500dfc3f8af25ed0ef176c8f9249fcc">t</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class__dcovector.html">_dcovector</a> &amp;&#160;</td>
          <td class="paramname"><em>covec</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return a transposed row vector </p>

<p>Definition at line <a class="el" href="__dcovector-calc_8hpp_source.html#l00003">3</a> of file <a class="el" href="__dcovector-calc_8hpp_source.html">_dcovector-calc.hpp</a>.</p>

<p>References <a class="el" href="__drovector_8hpp_source.html#l00011">_drovector::array</a>, <a class="el" href="__dcovector_8hpp_source.html#l00011">_dcovector::array</a>, <a class="el" href="__drovector_8hpp_source.html#l00010">_drovector::cap</a>, <a class="el" href="__dcovector_8hpp_source.html#l00010">_dcovector::cap</a>, <a class="el" href="__dcovector_8hpp_source.html#l00009">_dcovector::l</a>, <a class="el" href="__drovector_8hpp_source.html#l00009">_drovector::l</a>, and <a class="el" href="__dcovector-misc_8hpp_source.html#l00003">_dcovector::nullify()</a>.</p>

<p>Referenced by <a class="el" href="dgematrix__small-specialized_8hpp_source.html#l00092">m2q()</a>, and <a class="el" href="dgematrix__small-specialized_8hpp_source.html#l00084">rotate()</a>.</p>
<div class="fragment"><pre class="fragment">{VERBOSE_REPORT;
  <a class="code" href="class__drovector.html" title="(DO NOT USE) Smart-temporary Real Double-precision Row Vector Class">_drovector</a> rovec;
  rovec.<a class="code" href="class__drovector.html#a1d5f575560f3516140f1649301a9504f" title="vector size">l</a> =covec.<a class="code" href="class__dcovector.html#a2db3a577da8bc07533cf2da09fddaa58" title="vector size">l</a>;
  rovec.<a class="code" href="class__drovector.html#a0418c22f6035746dc1afd427720edbd3" title="vector capacity">cap</a> =covec.<a class="code" href="class__dcovector.html#a69c7ff16f4248ad4332abbac82bf590d" title="vector capacity">cap</a>;
  <span class="keyword">delete</span> [] rovec.<a class="code" href="class__drovector.html#ab4da9120db2bce05aa080e9d39cf1604" title="1D array to store vector data">array</a>;
  rovec.<a class="code" href="class__drovector.html#ab4da9120db2bce05aa080e9d39cf1604" title="1D array to store vector data">array</a> =covec.<a class="code" href="class__dcovector.html#a27693f26cc6e9e25c349c7fbf7cc2b67" title="1D array to store vector data">array</a>;

  covec.<a class="code" href="class__dcovector.html#af516a4a3c9f585d90684e724e3438f46">nullify</a>();
  <span class="keywordflow">return</span> rovec;
}
</pre></div>
</div>
</div>
<a class="anchor" id="a892d328603828a5d0a2acedc2c4db7bb"></a><!-- doxytag: member="_dcovector&#45;calc.hpp::nrm2" ref="a892d328603828a5d0a2acedc2c4db7bb" args="(const _dcovector &amp;vec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="zrovector-calc_8hpp.html#ab1b83724e6b57ec63005a1e9b8807cf4">nrm2</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class__dcovector.html">_dcovector</a> &amp;&#160;</td>
          <td class="paramname"><em>vec</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return its Euclidean norm </p>

<p>Definition at line <a class="el" href="__dcovector-calc_8hpp_source.html#l00017">17</a> of file <a class="el" href="__dcovector-calc_8hpp_source.html">_dcovector-calc.hpp</a>.</p>

<p>References <a class="el" href="__dcovector_8hpp_source.html#l00011">_dcovector::array</a>, <a class="el" href="__dcovector-misc_8hpp_source.html#l00012">_dcovector::destroy()</a>, and <a class="el" href="__dcovector_8hpp_source.html#l00009">_dcovector::l</a>.</p>

<p>Referenced by <a class="el" href="dcovector__small-specialized_8hpp_source.html#l00101">inv()</a>, and <a class="el" href="dcovector__small-specialized_8hpp_source.html#l00063">vt2q()</a>.</p>
<div class="fragment"><pre class="fragment">{VERBOSE_REPORT;
  <span class="keywordtype">double</span> val( dnrm2_(vec.<a class="code" href="class__dcovector.html#a2db3a577da8bc07533cf2da09fddaa58" title="vector size">l</a>, vec.<a class="code" href="class__dcovector.html#a27693f26cc6e9e25c349c7fbf7cc2b67" title="1D array to store vector data">array</a>, 1) );
  vec.<a class="code" href="class__dcovector.html#a3e16f52298eac6c97958a9cbc6388bc4">destroy</a>();
  <span class="keywordflow">return</span> val;
}
</pre></div>
</div>
</div>
<a class="anchor" id="a250895c0528a387beace5e285fe82354"></a><!-- doxytag: member="_dcovector&#45;calc.hpp::idamax" ref="a250895c0528a387beace5e285fe82354" args="(const _dcovector &amp;vec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="zrovector-calc_8hpp.html#aed93f65dbbeec9dac1f8feb12770dba1">idamax</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class__dcovector.html">_dcovector</a> &amp;&#160;</td>
          <td class="paramname"><em>vec</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return the index of element having the largest absolute value in 0-based numbering system </p>

<p>Definition at line <a class="el" href="__dcovector-calc_8hpp_source.html#l00027">27</a> of file <a class="el" href="__dcovector-calc_8hpp_source.html">_dcovector-calc.hpp</a>.</p>

<p>References <a class="el" href="__dcovector_8hpp_source.html#l00011">_dcovector::array</a>, <a class="el" href="__dcovector-misc_8hpp_source.html#l00012">_dcovector::destroy()</a>, <a class="el" href="__dgbmatrix-calc_8hpp_source.html#l00019">i()</a>, and <a class="el" href="__dcovector_8hpp_source.html#l00009">_dcovector::l</a>.</p>

<p>Referenced by <a class="el" href="dcovector__small-functions_8hpp_source.html#l00170">damax()</a>, and <a class="el" href="__dsymatrix-calc_8hpp_source.html#l00044">idamax()</a>.</p>
<div class="fragment"><pre class="fragment">{VERBOSE_REPORT;
  <span class="keywordtype">long</span> <a class="code" href="__dgbmatrix-calc_8hpp.html#af7c79b3740ba9c1d547f55ac94bc1258">i</a>( idamax_(vec.<a class="code" href="class__dcovector.html#a2db3a577da8bc07533cf2da09fddaa58" title="vector size">l</a>, vec.<a class="code" href="class__dcovector.html#a27693f26cc6e9e25c349c7fbf7cc2b67" title="1D array to store vector data">array</a>, 1) -1 );
  vec.<a class="code" href="class__dcovector.html#a3e16f52298eac6c97958a9cbc6388bc4">destroy</a>();
  <span class="keywordflow">return</span> <a class="code" href="__dgbmatrix-calc_8hpp.html#af7c79b3740ba9c1d547f55ac94bc1258">i</a>;
}
</pre></div>
</div>
</div>
<a class="anchor" id="af6c2b89c85cc70c33b7028fb27bf3a0f"></a><!-- doxytag: member="_dcovector&#45;calc.hpp::damax" ref="af6c2b89c85cc70c33b7028fb27bf3a0f" args="(const _dcovector &amp;vec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="zrovector-calc_8hpp.html#a3a716f0e4e20337e57371acb84ea0d1f">damax</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class__dcovector.html">_dcovector</a> &amp;&#160;</td>
          <td class="paramname"><em>vec</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>return its largest absolute value </p>

<p>Definition at line <a class="el" href="__dcovector-calc_8hpp_source.html#l00036">36</a> of file <a class="el" href="__dcovector-calc_8hpp_source.html">_dcovector-calc.hpp</a>.</p>

<p>References <a class="el" href="__dcovector_8hpp_source.html#l00011">_dcovector::array</a>, <a class="el" href="__dcovector-misc_8hpp_source.html#l00012">_dcovector::destroy()</a>, and <a class="el" href="__dcovector_8hpp_source.html#l00009">_dcovector::l</a>.</p>

<p>Referenced by <a class="el" href="__dsymatrix-calc_8hpp_source.html#l00052">damax()</a>.</p>
<div class="fragment"><pre class="fragment">{VERBOSE_REPORT;
  <span class="keywordtype">double</span> val( vec.<a class="code" href="class__dcovector.html#a27693f26cc6e9e25c349c7fbf7cc2b67" title="1D array to store vector data">array</a>[idamax_(vec.<a class="code" href="class__dcovector.html#a2db3a577da8bc07533cf2da09fddaa58" title="vector size">l</a>, vec.<a class="code" href="class__dcovector.html#a27693f26cc6e9e25c349c7fbf7cc2b67" title="1D array to store vector data">array</a>, 1)-1] );
  vec.<a class="code" href="class__dcovector.html#a3e16f52298eac6c97958a9cbc6388bc4">destroy</a>();
  <span class="keywordflow">return</span> val;
}
</pre></div>
</div>
</div>
</div><!-- contents -->
<!-- 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>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
