<!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-misc.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_52d55da33c112222fd795aaf577985fc.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-misc.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="dcovector-misc_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">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dcovector-misc_8hpp.html#a4f6cde9aa05d9af1ec9bf725dd664869">swap</a> (<a class="el" href="classdcovector.html">dcovector</a> &amp;u, <a class="el" href="classdcovector.html">dcovector</a> &amp;v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class__dcovector.html">_dcovector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="dcovector-misc_8hpp.html#a297beda6502b0d92c99576d2fb9548cb">_</a> (<a class="el" href="classdcovector.html">dcovector</a> &amp;vec)</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a4f6cde9aa05d9af1ec9bf725dd664869"></a><!-- doxytag: member="dcovector&#45;misc.hpp::swap" ref="a4f6cde9aa05d9af1ec9bf725dd664869" args="(dcovector &amp;u, dcovector &amp;v)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="zrovector-misc_8hpp.html#a98b69aa1cd19f4714be01b0f2797ee86">swap</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdcovector.html">dcovector</a> &amp;&#160;</td>
          <td class="paramname"><em>u</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classdcovector.html">dcovector</a> &amp;&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>swap two vectors </p>

<p>Definition at line <a class="el" href="dcovector-misc_8hpp_source.html#l00124">124</a> of file <a class="el" href="dcovector-misc_8hpp_source.html">dcovector-misc.hpp</a>.</p>

<p>References <a class="el" href="dcovector_8hpp_source.html#l00011">dcovector::array</a>, <a class="el" href="dcovector_8hpp_source.html#l00010">dcovector::cap</a>, and <a class="el" href="dcovector_8hpp_source.html#l00009">dcovector::l</a>.</p>

<p>Referenced by <a class="el" href="dgsmatrix-misc_8hpp_source.html#l00326">_()</a>, <a class="el" href="zgsmatrix-calc_8hpp_source.html#l00034">conjt()</a>, <a class="el" href="dgsmatrix-misc_8hpp_source.html#l00315">swap()</a>, and <a class="el" href="__dgsmatrix-calc_8hpp_source.html#l00003">t()</a>.</p>
<div class="fragment"><pre class="fragment">{VERBOSE_REPORT;
  <span class="keywordtype">long</span> u_cap(u.<a class="code" href="classdcovector.html#a1c6ebf4df4e1d09a2a832e590e13d7c6" title="vector capacity">cap</a>), u_l(u.<a class="code" href="classdcovector.html#a08e64e5ecb5121100787d0f5d48f0af4" title="vector size">l</a>);
  <span class="keywordtype">double</span>* u_array(u.<a class="code" href="classdcovector.html#a9b188bf160d8f7e24ea1d41deaceaf6d" title="1D array to store vector data">array</a>);
  u.<a class="code" href="classdcovector.html#a08e64e5ecb5121100787d0f5d48f0af4" title="vector size">l</a>=v.<a class="code" href="classdcovector.html#a08e64e5ecb5121100787d0f5d48f0af4" title="vector size">l</a>; u.<a class="code" href="classdcovector.html#a1c6ebf4df4e1d09a2a832e590e13d7c6" title="vector capacity">cap</a>=v.<a class="code" href="classdcovector.html#a1c6ebf4df4e1d09a2a832e590e13d7c6" title="vector capacity">cap</a>; u.<a class="code" href="classdcovector.html#a9b188bf160d8f7e24ea1d41deaceaf6d" title="1D array to store vector data">array</a>=v.<a class="code" href="classdcovector.html#a9b188bf160d8f7e24ea1d41deaceaf6d" title="1D array to store vector data">array</a>;
  v.<a class="code" href="classdcovector.html#a08e64e5ecb5121100787d0f5d48f0af4" title="vector size">l</a>=u_l; v.<a class="code" href="classdcovector.html#a1c6ebf4df4e1d09a2a832e590e13d7c6" title="vector capacity">cap</a>=u_cap; v.<a class="code" href="classdcovector.html#a9b188bf160d8f7e24ea1d41deaceaf6d" title="1D array to store vector data">array</a>=u_array;
}
</pre></div>
</div>
</div>
<a class="anchor" id="a297beda6502b0d92c99576d2fb9548cb"></a><!-- doxytag: member="dcovector&#45;misc.hpp::_" ref="a297beda6502b0d92c99576d2fb9548cb" args="(dcovector &amp;vec)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class__dcovector.html">_dcovector</a> <a class="el" href="zrovector-misc_8hpp.html#ae93f655523a1024bf063025b1f0e5a23">_</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classdcovector.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>convert user object to smart-temporary object </p>

<p>Definition at line <a class="el" href="dcovector-misc_8hpp_source.html#l00134">134</a> of file <a class="el" href="dcovector-misc_8hpp_source.html">dcovector-misc.hpp</a>.</p>

<p>References <a class="el" href="__dcovector_8hpp_source.html#l00011">_dcovector::array</a>, <a class="el" href="dcovector_8hpp_source.html#l00011">dcovector::array</a>, <a class="el" href="dcovector_8hpp_source.html#l00010">dcovector::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>, and <a class="el" href="dcovector_8hpp_source.html#l00009">dcovector::l</a>.</p>

<p>Referenced by <a class="el" href="zcovector-calc_8hpp_source.html#l00012">conj()</a>, <a class="el" href="__zcovector-calc_8hpp_source.html#l00023">conjt()</a>, <a class="el" href="__dgbmatrix-calc_8hpp_source.html#l00019">i()</a>, <a class="el" href="dgematrix-dgematrix_8hpp_source.html#l00138">operator%()</a>, <a class="el" href="__dcovector-__drovector_8hpp_source.html#l00003">operator*()</a>, <a class="el" href="__dgbmatrix-__dgbmatrix_8hpp_source.html#l00003">operator+()</a>, <a class="el" href="__dgbmatrix-__dgbmatrix_8hpp_source.html#l00057">operator-()</a>, <a class="el" href="__zhematrix-complex_8hpp_source.html#l00013">operator/()</a>, <a class="el" href="__dgbmatrix-calc_8hpp_source.html#l00003">t()</a>, <a class="el" href="dcovector__small-functions_8hpp_source.html#l00004">dcovector_small&lt; l &gt;::to_dcovector()</a>, <a class="el" href="dgematrix__small-functions_8hpp_source.html#l00004">dgematrix_small&lt; m, n &gt;::to_dgematrix()</a>, <a class="el" href="__dsymatrix-cast_8hpp_source.html#l00022">_dsymatrix::to_dgematrix()</a>, <a class="el" href="__dssmatrix-cast_8hpp_source.html#l00020">_dssmatrix::to_dgematrix()</a>, <a class="el" href="__dgsmatrix-cast_8hpp_source.html#l00021">_dgsmatrix::to_dgematrix()</a>, <a class="el" href="__dgbmatrix-cast_8hpp_source.html#l00021">_dgbmatrix::to_dgematrix()</a>, <a class="el" href="__dssmatrix-cast_8hpp_source.html#l00051">_dssmatrix::to_dgsmatrix()</a>, <a class="el" href="drovector__small-functions_8hpp_source.html#l00004">drovector_small&lt; l &gt;::to_drovector()</a>, <a class="el" href="__dssmatrix-cast_8hpp_source.html#l00036">_dssmatrix::to_dsymatrix()</a>, <a class="el" href="__dcovector-cast_8hpp_source.html#l00003">_dcovector::to_zcovector()</a>, <a class="el" href="zcovector__small-functions_8hpp_source.html#l00004">zcovector_small&lt; l &gt;::to_zcovector()</a>, <a class="el" href="__dgbmatrix-cast_8hpp_source.html#l00003">_dgbmatrix::to_zgbmatrix()</a>, <a class="el" href="zgematrix__small-functions_8hpp_source.html#l00004">zgematrix_small&lt; m, n &gt;::to_zgematrix()</a>, <a class="el" href="__zhematrix-cast_8hpp_source.html#l00003">_zhematrix::to_zgematrix()</a>, <a class="el" href="__dgematrix-cast_8hpp_source.html#l00003">_dgematrix::to_zgematrix()</a>, <a class="el" href="__zhsmatrix-cast_8hpp_source.html#l00003">_zhsmatrix::to_zgematrix()</a>, <a class="el" href="__zgsmatrix-cast_8hpp_source.html#l00003">_zgsmatrix::to_zgematrix()</a>, <a class="el" href="__zgbmatrix-cast_8hpp_source.html#l00003">_zgbmatrix::to_zgematrix()</a>, <a class="el" href="__dgsmatrix-cast_8hpp_source.html#l00003">_dgsmatrix::to_zgsmatrix()</a>, <a class="el" href="__zhsmatrix-cast_8hpp_source.html#l00033">_zhsmatrix::to_zgsmatrix()</a>, <a class="el" href="__dsymatrix-cast_8hpp_source.html#l00003">_dsymatrix::to_zhematrix()</a>, <a class="el" href="__zhsmatrix-cast_8hpp_source.html#l00018">_zhsmatrix::to_zhematrix()</a>, <a class="el" href="__dssmatrix-cast_8hpp_source.html#l00003">_dssmatrix::to_zhsmatrix()</a>, <a class="el" href="__drovector-cast_8hpp_source.html#l00003">_drovector::to_zrovector()</a>, and <a class="el" href="zrovector__small-functions_8hpp_source.html#l00004">zrovector_small&lt; l &gt;::to_zrovector()</a>.</p>
<div class="fragment"><pre class="fragment">{VERBOSE_REPORT;
  <a class="code" href="class__dcovector.html" title="(DO NOT USE) Smart-temporary Real Double-precision Column Vector Class">_dcovector</a> newvec;
  <span class="comment"></span>
<span class="comment">  //////// shallow copy ////////</span>
<span class="comment"></span>  newvec.<a class="code" href="class__dcovector.html#a2db3a577da8bc07533cf2da09fddaa58" title="vector size">l</a> =vec.<a class="code" href="classdcovector.html#a08e64e5ecb5121100787d0f5d48f0af4" title="vector size">l</a>;
  newvec.<a class="code" href="class__dcovector.html#a69c7ff16f4248ad4332abbac82bf590d" title="vector capacity">cap</a> =vec.<a class="code" href="classdcovector.html#a1c6ebf4df4e1d09a2a832e590e13d7c6" title="vector capacity">cap</a>;
  newvec.<a class="code" href="class__dcovector.html#a27693f26cc6e9e25c349c7fbf7cc2b67" title="1D array to store vector data">array</a> =vec.<a class="code" href="classdcovector.html#a9b188bf160d8f7e24ea1d41deaceaf6d" title="1D array to store vector data">array</a>;
  <span class="comment"></span>
<span class="comment">  //////// nullify ////////</span>
<span class="comment"></span>  vec.<a class="code" href="classdcovector.html#a08e64e5ecb5121100787d0f5d48f0af4" title="vector size">l</a> =0;
  vec.<a class="code" href="classdcovector.html#a1c6ebf4df4e1d09a2a832e590e13d7c6" title="vector capacity">cap</a> =0;
  vec.<a class="code" href="classdcovector.html#a9b188bf160d8f7e24ea1d41deaceaf6d" title="1D array to store vector data">array</a> =NULL;
  
  <span class="keywordflow">return</span> newvec;
}
</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>
