<!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: zgbmatrix-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_ee42cf41084fac920343acf1ea5fbb74.html">zgbmatrix-</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">zgbmatrix-misc.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="zgbmatrix-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="zgbmatrix-misc_8hpp.html#ae91a6b99e4e2e1dcee754edde07486f7">swap</a> (<a class="el" href="classzgbmatrix.html">zgbmatrix</a> &amp;A, <a class="el" href="classzgbmatrix.html">zgbmatrix</a> &amp;B)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class__zgbmatrix.html">_zgbmatrix</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="zgbmatrix-misc_8hpp.html#a059625f050bfc571e178780d6f09dedd">_</a> (<a class="el" href="classzgbmatrix.html">zgbmatrix</a> &amp;mat)</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ae91a6b99e4e2e1dcee754edde07486f7"></a><!-- doxytag: member="zgbmatrix&#45;misc.hpp::swap" ref="ae91a6b99e4e2e1dcee754edde07486f7" args="(zgbmatrix &amp;A, zgbmatrix &amp;B)" -->
<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="classzgbmatrix.html">zgbmatrix</a> &amp;&#160;</td>
          <td class="paramname"><em>A</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classzgbmatrix.html">zgbmatrix</a> &amp;&#160;</td>
          <td class="paramname"><em>B</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 matrices </p>

<p>Definition at line <a class="el" href="zgbmatrix-misc_8hpp_source.html#l00157">157</a> of file <a class="el" href="zgbmatrix-misc_8hpp_source.html">zgbmatrix-misc.hpp</a>.</p>

<p>References <a class="el" href="zgbmatrix_8hpp_source.html#l00013">zgbmatrix::array</a>, <a class="el" href="zgbmatrix_8hpp_source.html#l00014">zgbmatrix::darray</a>, <a class="el" href="zgbmatrix_8hpp_source.html#l00011">zgbmatrix::kl</a>, <a class="el" href="zgbmatrix_8hpp_source.html#l00012">zgbmatrix::ku</a>, <a class="el" href="zgbmatrix_8hpp_source.html#l00009">zgbmatrix::m</a>, and <a class="el" href="zgbmatrix_8hpp_source.html#l00010">zgbmatrix::n</a>.</p>
<div class="fragment"><pre class="fragment">{VERBOSE_REPORT;
  <span class="keywordtype">long</span> A_m(A.<a class="code" href="classzgbmatrix.html#a760031d62091c1ce2808a1b07c7f81bf" title="matrix row size">m</a>), A_n(A.<a class="code" href="classzgbmatrix.html#ae648f83ec8f7cbc28335265c10e6fe45" title="matrix column size">n</a>), A_kl(A.<a class="code" href="classzgbmatrix.html#af8f8a5015069bdb6c268652ee25838c0" title="lower band width">kl</a>), A_ku(A.<a class="code" href="classzgbmatrix.html#a2a36d59681d1b2f13120a4b4be9203e8" title="upper band width">ku</a>);
  comple* A_array(A.<a class="code" href="classzgbmatrix.html#af18c28d31a3921916117e7bbef4d720d" title="1D array to store matrix data">array</a>);
  <span class="comment">//comple** A_darray(A.darray);</span>
  comple** A_darray=A.<a class="code" href="classzgbmatrix.html#a288d8c9cf22212bdb33ee3fc08cba1c5" title="array of pointers of column head addresses">darray</a>; <span class="comment">//corruption to support VC++</span>

  A.<a class="code" href="classzgbmatrix.html#a760031d62091c1ce2808a1b07c7f81bf" title="matrix row size">m</a>=B.<a class="code" href="classzgbmatrix.html#a760031d62091c1ce2808a1b07c7f81bf" title="matrix row size">m</a>; A.<a class="code" href="classzgbmatrix.html#ae648f83ec8f7cbc28335265c10e6fe45" title="matrix column size">n</a>=B.<a class="code" href="classzgbmatrix.html#ae648f83ec8f7cbc28335265c10e6fe45" title="matrix column size">n</a>; A.<a class="code" href="classzgbmatrix.html#af8f8a5015069bdb6c268652ee25838c0" title="lower band width">kl</a>=B.<a class="code" href="classzgbmatrix.html#af8f8a5015069bdb6c268652ee25838c0" title="lower band width">kl</a>; A.<a class="code" href="classzgbmatrix.html#a2a36d59681d1b2f13120a4b4be9203e8" title="upper band width">ku</a>=B.<a class="code" href="classzgbmatrix.html#a2a36d59681d1b2f13120a4b4be9203e8" title="upper band width">ku</a>; A.<a class="code" href="classzgbmatrix.html#af18c28d31a3921916117e7bbef4d720d" title="1D array to store matrix data">array</a>=B.<a class="code" href="classzgbmatrix.html#af18c28d31a3921916117e7bbef4d720d" title="1D array to store matrix data">array</a>; A.<a class="code" href="classzgbmatrix.html#a288d8c9cf22212bdb33ee3fc08cba1c5" title="array of pointers of column head addresses">darray</a>=B.<a class="code" href="classzgbmatrix.html#a288d8c9cf22212bdb33ee3fc08cba1c5" title="array of pointers of column head addresses">darray</a>;
  B.<a class="code" href="classzgbmatrix.html#a760031d62091c1ce2808a1b07c7f81bf" title="matrix row size">m</a>=A_m; B.<a class="code" href="classzgbmatrix.html#ae648f83ec8f7cbc28335265c10e6fe45" title="matrix column size">n</a>=A_n; B.<a class="code" href="classzgbmatrix.html#af8f8a5015069bdb6c268652ee25838c0" title="lower band width">kl</a>=A_kl; B.<a class="code" href="classzgbmatrix.html#a2a36d59681d1b2f13120a4b4be9203e8" title="upper band width">ku</a>=A_ku; B.<a class="code" href="classzgbmatrix.html#af18c28d31a3921916117e7bbef4d720d" title="1D array to store matrix data">array</a>=A_array; B.<a class="code" href="classzgbmatrix.html#a288d8c9cf22212bdb33ee3fc08cba1c5" title="array of pointers of column head addresses">darray</a>=A_darray;
}
</pre></div>
</div>
</div>
<a class="anchor" id="a059625f050bfc571e178780d6f09dedd"></a><!-- doxytag: member="zgbmatrix&#45;misc.hpp::_" ref="a059625f050bfc571e178780d6f09dedd" args="(zgbmatrix &amp;mat)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class__zgbmatrix.html">_zgbmatrix</a> <a class="el" href="zrovector-misc_8hpp.html#ae93f655523a1024bf063025b1f0e5a23">_</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classzgbmatrix.html">zgbmatrix</a> &amp;&#160;</td>
          <td class="paramname"><em>mat</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="zgbmatrix-misc_8hpp_source.html#l00170">170</a> of file <a class="el" href="zgbmatrix-misc_8hpp_source.html">zgbmatrix-misc.hpp</a>.</p>

<p>References <a class="el" href="__zgbmatrix_8hpp_source.html#l00013">_zgbmatrix::array</a>, <a class="el" href="zgbmatrix_8hpp_source.html#l00013">zgbmatrix::array</a>, <a class="el" href="__zgbmatrix_8hpp_source.html#l00014">_zgbmatrix::darray</a>, <a class="el" href="zgbmatrix_8hpp_source.html#l00014">zgbmatrix::darray</a>, <a class="el" href="__zgbmatrix_8hpp_source.html#l00011">_zgbmatrix::kl</a>, <a class="el" href="zgbmatrix_8hpp_source.html#l00011">zgbmatrix::kl</a>, <a class="el" href="zgbmatrix_8hpp_source.html#l00012">zgbmatrix::ku</a>, <a class="el" href="__zgbmatrix_8hpp_source.html#l00012">_zgbmatrix::ku</a>, <a class="el" href="zgbmatrix_8hpp_source.html#l00009">zgbmatrix::m</a>, <a class="el" href="__zgbmatrix_8hpp_source.html#l00009">_zgbmatrix::m</a>, <a class="el" href="__zgbmatrix_8hpp_source.html#l00010">_zgbmatrix::n</a>, and <a class="el" href="zgbmatrix_8hpp_source.html#l00010">zgbmatrix::n</a>.</p>
<div class="fragment"><pre class="fragment">{VERBOSE_REPORT;
  <a class="code" href="class__zgbmatrix.html" title="(DO NOT USE) Smart-temporary Complex Double-precision General Band Matrix Class">_zgbmatrix</a> newmat;
  <span class="comment"></span>
<span class="comment">  //////// shallow copy ////////</span>
<span class="comment"></span>  newmat.<a class="code" href="class__zgbmatrix.html#a2c7cdee481455ef265dc77dea7cd03cf" title="matrix row size">m</a> =mat.<a class="code" href="classzgbmatrix.html#a760031d62091c1ce2808a1b07c7f81bf" title="matrix row size">m</a>;
  newmat.<a class="code" href="class__zgbmatrix.html#a743983e0c14c2d3917b51c510ee957f6" title="matrix column size">n</a> =mat.<a class="code" href="classzgbmatrix.html#ae648f83ec8f7cbc28335265c10e6fe45" title="matrix column size">n</a>;
  newmat.<a class="code" href="class__zgbmatrix.html#a0a88723ded8d7728a8b90ddfd28e5d0c" title="lower band width">kl</a> =mat.<a class="code" href="classzgbmatrix.html#af8f8a5015069bdb6c268652ee25838c0" title="lower band width">kl</a>;
  newmat.<a class="code" href="class__zgbmatrix.html#a0b32db6f9ae374d5d390e24686433a77" title="upper band width">ku</a> =mat.<a class="code" href="classzgbmatrix.html#a2a36d59681d1b2f13120a4b4be9203e8" title="upper band width">ku</a>;
  newmat.<a class="code" href="class__zgbmatrix.html#aa218c85602f938d62eb6441a70ad73e2" title="1D array to store matrix data">array</a> =mat.<a class="code" href="classzgbmatrix.html#af18c28d31a3921916117e7bbef4d720d" title="1D array to store matrix data">array</a>;
  newmat.<a class="code" href="class__zgbmatrix.html#ab8b95e78780f362713cd2d149f19b401" title="array of pointers of column head addresses">darray</a> =mat.<a class="code" href="classzgbmatrix.html#a288d8c9cf22212bdb33ee3fc08cba1c5" title="array of pointers of column head addresses">darray</a>;
  <span class="comment"></span>
<span class="comment">  //////// nullify ////////</span>
<span class="comment"></span>  mat.<a class="code" href="classzgbmatrix.html#a760031d62091c1ce2808a1b07c7f81bf" title="matrix row size">m</a> =0;
  mat.<a class="code" href="classzgbmatrix.html#ae648f83ec8f7cbc28335265c10e6fe45" title="matrix column size">n</a> =0;
  mat.<a class="code" href="classzgbmatrix.html#af8f8a5015069bdb6c268652ee25838c0" title="lower band width">kl</a> =0;
  mat.<a class="code" href="classzgbmatrix.html#a2a36d59681d1b2f13120a4b4be9203e8" title="upper band width">ku</a> =0;
  mat.<a class="code" href="classzgbmatrix.html#af18c28d31a3921916117e7bbef4d720d" title="1D array to store matrix data">array</a> =NULL;
  mat.<a class="code" href="classzgbmatrix.html#a288d8c9cf22212bdb33ee3fc08cba1c5" title="array of pointers of column head addresses">darray</a> =NULL;
  
  <span class="keywordflow">return</span> newmat;
}
</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>
