<!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: Read/Write File Format</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 class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><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>
<div class="header">
  <div class="headertitle">
<div class="title">Read/Write File Format </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock">The followings are the examples file formats for read and write functions.
Only the order of data is important.
The "#" at the first line is optional.
In ceses of complex matrixes and vecotors,
"(", real part, ",", imaginary part, and ")" should be arranged 
without any linefeed code or space code.
The linefeed code and more than two space codes are optional.
However, the file should be end with the linefeed code or space code.

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>dgematrix</h2>
<center>
<table border="2">
<caption align="top">Matrix Data</caption>
<tr> <td>0.0</td> <td>0.1</td> <td>0.3</td> <td>0.4</td> </tr>
<tr> <td>1.0</td> <td>1.1</td> <td>1.2</td> <td>1.3</td> </tr>
<tr> <td>2.0</td> <td>2.1</td> <td>2.2</td> <td>2.3</td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#dgematrix 3 4</td> </tr>
<tr> <td>0.0 0.1 0.2 0.3</td> </tr>
<tr> <td>1.0 1.1 1.2 1.3</td> </tr>
<tr> <td>2.0 2.1 2.2 2.3</td> </tr>
</table>
</center>

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>dgbmatrix</h2>
<center>
<table border="2">
<caption align="top">Matrix Data</caption>
<tr> <td>0.0</td> <td>0.1</td> <td>0.2</td> <td>x  </td> </tr>
<tr> <td>1.0</td> <td>1.1</td> <td>1.2</td> <td>1.3</td> </tr>
<tr> <td>x  </td> <td>2.1</td> <td>2.2</td> <td>2.3</td> </tr>
<tr> <td>x  </td> <td>x  </td> <td>3.2</td> <td>3.3</td> </tr>
<tr> <td>x  </td> <td>x  </td> <td>x  </td> <td>4.3</td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#dgbmatrix 5 4 1 2</td> </tr>
<tr> <td>0.0 0.1 0.2</td> </tr>
<tr> <td>1.0 1.1 1.2 1.3</td> </tr>
<tr> <td>2.1 2.2 2.3</td> </tr>
<tr> <td>3.2 3.3</td> </tr>
<tr> <td>4.3</td> </tr>
</table>
</center>

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>dsymatrix</h2>
<center>
<table border="2">
<caption align="top">Matrix Data</caption>
<tr> <td>0.0</td> <td>{1.0}</td> <td>{2.0}</td> <td>{3.1}</td> </tr>
<tr> <td>1.0</td> <td> 1.1 </td> <td>{2.1}</td> <td>{3.1}</td> </tr>
<tr> <td>2.0</td> <td> 2.1 </td> <td> 2.2 </td> <td>{3.2}</td> </tr>
<tr> <td>3.0</td> <td> 3.1 </td> <td> 3.2 </td> <td> 3.3 </td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#dsymatrix 4</td> </tr>
<tr> <td>0.0</td> </tr>
<tr> <td>1.0 1.1</td> </tr>
<tr> <td>2.0 2.1 2.2</td> </tr>
<tr> <td>3.0 3.1 3.2 3.3</td> </tr>
</table>
</center>

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>dssmatrix</h2>
<center>
<table border="2">
<caption align="top">Matrix Data</caption>
<tr> <td>{0}</td> <td>0.1</td> <td>{0}</td> <td>{0}</td> </tr>
<tr> <td>{0}</td> <td>{0}</td> <td>1.2</td> <td>{0}</td> </tr>
<tr> <td>2.0</td> <td>{0}</td> <td>{0}</td> <td>2.3</td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#dssmatrix 3 4 4</td> </tr>
<tr> <td>0 1 0.1</td> </tr>
<tr> <td>1 2 1.2</td> </tr>
<tr> <td>2 0 2.0</td> </tr>
<tr> <td>2 3 2.3</td> </tr>
</table>
</center>

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>dcovector</h2>
<center>
<table border="2">
<caption align="top">Vector Data</caption>
<tr> <td>0</td> </tr>
<tr> <td>1</td> </tr>
<tr> <td>2</td> </tr>
<tr> <td>3</td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#dcovector 4</td> </tr>
<tr> <td>0</td> </tr>
<tr> <td>1</td> </tr>
<tr> <td>2</td> </tr>
<tr> <td>3</td> </tr>
</table>
</center>

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>drovector</h2>
<center>
<table border="2">
<caption align="top">Vector Data</caption>
<tr> <td>0</td> <td>1</td> <td>2</td> <td>3</td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#drovector 4</td> </tr>
<tr> <td>0 1 2 3</td> </tr>
</table>
</center>

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<hr>
<hr>
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>zgematrix</h2>
<center>
<table border="2">
<caption align="top">Matrix Data</caption>
<tr> <td>0+0i</td> <td>0+1i</td> <td>0+2i</td> <td>0+3i</td> </tr>
<tr> <td>1+0i</td> <td>1+1i</td> <td>1+2i</td> <td>1+3i</td> </tr>
<tr> <td>2+0i</td> <td>2+1i</td> <td>2+2i</td> <td>2+3i</td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#zgematrix 3 4</td> </tr>
<tr> <td>(0,0) (0,1) (0,2) (0,3)</td> </tr>
<tr> <td>(1,0) (1,1) (1,2) (1,3)</td> </tr>
<tr> <td>(2,0) (2,1) (2,2) (2,3)</td> </tr>
</table>
</center>

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>zgbmatrix</h2>
<center>
<table border="2">
<caption align="top">Matrix Data</caption>
<tr> <td>0+0i</td> <td>0+1i</td> <td>0+2i</td> <td>x   </td> </tr>
<tr> <td>1+0i</td> <td>1+1i</td> <td>1+2i</td> <td>1+3i</td> </tr>
<tr> <td>x   </td> <td>2+1i</td> <td>2+2i</td> <td>2+3i</td> </tr>
<tr> <td>x   </td> <td>x   </td> <td>3+2i</td> <td>3+3i</td> </tr>
<tr> <td>x   </td> <td>x   </td> <td>x   </td> <td>4+3i</td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#zgbmatrix 5 4 1 2</td> </tr>
<tr> <td>(0,0) (0,1) (0,2)</td> </tr>
<tr> <td>(1,0) (1,1) (1,2) (1,3)</td> </tr>
<tr> <td>(2,1) (2,2) (2,3)</td> </tr>
<tr> <td>(3,2) (3,3)</td> </tr>
<tr> <td>(4,3)</td> </tr>
</table>
</center>

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>zhematrix</h2>
<center>
<table border="2">
<caption align="top">Matrix Data</caption>
<tr> <td>0   </td> <td>{2-0i}</td> <td>{3-0i}</td> <td>{4-0i}</td> </tr>
<tr> <td>1+0i</td> <td> 1    </td> <td>{3-1i}</td> <td>{4-1i}</td> </tr>
<tr> <td>2+0i</td> <td> 2+1i </td> <td> 2    </td> <td>{4-2i}</td> </tr>
<tr> <td>3+0i</td> <td> 3+1i </td> <td> 3+2i </td> <td> 3    </td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#zhematrix 4</td> </tr>
<tr> <td>(0,0)</td> </tr>
<tr> <td>(1,0) (1,0)</td> </tr>
<tr> <td>(2,0) (2,1) (2,0)</td> </tr>
<tr> <td>(3,0) (3,1) (3,2) (3,0)</td> </tr>
</table>
</center>

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>zssmatrix</h2>
<center>
<table border="2">
<caption align="top">Matrix Data</caption>
<tr> <td>{0}</td> <td>0+1i</td> <td>{0}</td> <td>{0}</td> </tr>
<tr> <td>{0}</td> <td>{0}</td> <td>1+2i</td> <td>{0}</td> </tr>
<tr> <td>2+0i</td> <td>{0}</td> <td>{0}</td> <td>2+3i</td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#zssmatrix 3 4 4</td> </tr>
<tr> <td>0 1 (0,1)</td> </tr>
<tr> <td>1 2 (1,2)</td> </tr>
<tr> <td>2 0 (2,0)</td> </tr>
<tr> <td>2 3 (2,3)</td> </tr>
</table>
</center>

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>zcovector</h2>
<center>
<table border="2">
<caption align="top">Vector Data</caption>
<tr> <td>0+0i</td> </tr>
<tr> <td>1+0i</td> </tr>
<tr> <td>2+0i</td> </tr>
<tr> <td>3+0i</td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#zcovector 4</td> </tr>
<tr> <td>(0,0)</td> </tr>
<tr> <td>(1,0)</td> </tr>
<tr> <td>(2,0)</td> </tr>
<tr> <td>(3,0)</td> </tr>
</table>
</center>

<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<hr>
<h2>zrovector</h2>
<center>
<table border="2">
<caption align="top">Vector Data</caption>
<tr> <td>0+0i</td> <td>0+1i</td> <td>0+2i</td> <td>0+3i</td> </tr>
</table>

<br>

<table border="0">
<caption align="top">File Format</caption>
<tr> <td>#zrovector 4</td> </tr>
<tr> <td>(0,0) (0,1) (0,2) (0,3)</td> </tr>
</table>
</center>
 </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>
