<!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: dsymatrix_small-constructors.hpp Source File</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_cb17ad2bab547ae9db055464c7b276b8.html">small</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">dsymatrix_small-constructors.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="dsymatrix__small-constructors_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//=============================================================================</span><span class="comment"></span>
<a name="l00002"></a>00002 <span class="comment">/*!  */</span>
<a name="l00003"></a>00003 <span class="keyword">template</span>&lt;<span class="keywordtype">long</span> n&gt;
<a name="l00004"></a><a class="code" href="classdsymatrix__small.html#ac0f2b5acb1bd0493600aef87f2361cf6">00004</a> <span class="keyword">inline</span> <a class="code" href="classdsymatrix__small.html#ac0f2b5acb1bd0493600aef87f2361cf6">dsymatrix_small&lt;n&gt;::dsymatrix_small</a>()
<a name="l00005"></a>00005 {VERBOSE_REPORT;
<a name="l00006"></a>00006   ;
<a name="l00007"></a>00007 }
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="comment">//=============================================================================</span><span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">/*!  */</span>
<a name="l00011"></a>00011 <span class="keyword">template</span>&lt;<span class="keywordtype">long</span> n&gt;
<a name="l00012"></a><a class="code" href="classdsymatrix__small.html#a0c0345b4ed560cd3b25f3dcf79608add">00012</a> <span class="keyword">inline</span> <a class="code" href="classdsymatrix__small.html#ac0f2b5acb1bd0493600aef87f2361cf6">dsymatrix_small&lt;n&gt;::dsymatrix_small</a>(<span class="keyword">const</span> <a class="code" href="classdsymatrix.html" title="Real Double-precision Symmetric Matrix Class [l-type (UPLO=l) Strage].">dsymatrix</a>&amp; mat)
<a name="l00013"></a>00013 {VERBOSE_REPORT;
<a name="l00014"></a>00014 <span class="preprocessor">#ifdef  CPPL_DEBUG</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>  <span class="keywordflow">if</span>( n!=mat.<a class="code" href="classdsymatrix.html#a4a2ca7ec3f2b7bd62139777fbb6ad1a9" title="matrix column size">n</a> ){
<a name="l00016"></a>00016     ERROR_REPORT;
<a name="l00017"></a>00017     std::cerr &lt;&lt; <span class="stringliteral">&quot;Matrix sizes must be the same.&quot;</span> &lt;&lt; std::endl
<a name="l00018"></a>00018               &lt;&lt; <span class="stringliteral">&quot;Your input was &quot;</span> &lt;&lt; n &lt;&lt; <span class="stringliteral">&quot;x&quot;</span> &lt;&lt; n &lt;&lt; <span class="stringliteral">&quot; and &quot;</span> &lt;&lt; mat.<a class="code" href="classdsymatrix.html#a955f345240dab42d931f4c8700dc43d5" title="matrix row size">m</a> &lt;&lt; <span class="stringliteral">&quot;x&quot;</span> &lt;&lt; mat.<a class="code" href="classdsymatrix.html#a4a2ca7ec3f2b7bd62139777fbb6ad1a9" title="matrix column size">n</a> &lt;&lt; <span class="stringliteral">&quot;.&quot;</span> &lt;&lt; std::endl;
<a name="l00019"></a>00019     exit(1);
<a name="l00020"></a>00020   }
<a name="l00021"></a>00021 <span class="preprocessor">#endif//CPPL_DEBUG</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>  
<a name="l00023"></a>00023   <span class="keywordflow">for</span>(<span class="keywordtype">long</span> k=0; k&lt;(n*(n+1))/2; k++){
<a name="l00024"></a>00024     array[k] =mat.<a class="code" href="classdsymatrix.html#a7efa7c974733dc3111167a9ebb217e1f" title="1D array to store matrix data">array</a>[k];;
<a name="l00025"></a>00025   }
<a name="l00026"></a>00026 }
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="comment">//=============================================================================</span><span class="comment"></span>
<a name="l00029"></a>00029 <span class="comment">/*!  */</span>
<a name="l00030"></a>00030 <span class="keyword">template</span>&lt;<span class="keywordtype">long</span> n&gt;
<a name="l00031"></a><a class="code" href="classdsymatrix__small.html#ae6e945fa35fa35fc03cd7f139704b14a">00031</a> <span class="keyword">inline</span> <a class="code" href="classdsymatrix__small.html#ac0f2b5acb1bd0493600aef87f2361cf6">dsymatrix_small&lt;n&gt;::dsymatrix_small</a>(<span class="keyword">const</span> <span class="keywordtype">double</span>&amp; x)
<a name="l00032"></a>00032 {VERBOSE_REPORT;
<a name="l00033"></a>00033   <span class="keywordflow">for</span>(<span class="keywordtype">long</span> k=0; k&lt;(n*(n+1))/2; k++){
<a name="l00034"></a>00034     array[k] =x;
<a name="l00035"></a>00035   }
<a name="l00036"></a>00036 }
<a name="l00037"></a>00037 <span class="comment"></span>
<a name="l00038"></a>00038 <span class="comment">///////////////////////////////////////////////////////////////////////////////</span>
<a name="l00039"></a>00039 <span class="comment">///////////////////////////////////////////////////////////////////////////////</span>
<a name="l00040"></a>00040 <span class="comment">///////////////////////////////////////////////////////////////////////////////</span>
<a name="l00041"></a>00041 <span class="comment"></span>
<a name="l00042"></a>00042 <span class="comment">//=============================================================================</span><span class="comment"></span>
<a name="l00043"></a>00043 <span class="comment">/*!  */</span>
<a name="l00044"></a>00044 <span class="keyword">template</span>&lt;<span class="keywordtype">long</span> n&gt;
<a name="l00045"></a><a class="code" href="classdsymatrix__small.html#a9b81becd06930f63738a4d05f0666a69">00045</a> <span class="keyword">inline</span> <a class="code" href="classdsymatrix__small.html#a9b81becd06930f63738a4d05f0666a69">dsymatrix_small&lt;n&gt;::~dsymatrix_small</a>()
<a name="l00046"></a>00046 {VERBOSE_REPORT;
<a name="l00047"></a>00047   ;
<a name="l00048"></a>00048 }
</pre></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>
