Changeset 353 for doc/html/vector_and_matrix.html
- Timestamp:
- 06/02/09 10:08:06 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
doc/html/vector_and_matrix.html
r323 r353 62 62 <div class="contents"> 63 63 <h1><a class="anchor" name="vector_and_matrix">A very simple tutorial about vectors and matrixes </a></h1>Let's start with a really simple example. Try to complile the following program:<p> 64 <div class="fragment"><pre class="fragment"><span class="preprocessor">#include < itpp/itbase.h></span>64 <div class="fragment"><pre class="fragment"><span class="preprocessor">#include <<a class="code" href="itbase_8h.html" title="Include file for the IT++ base module.">itpp/itbase.h</a>></span> 65 65 66 66 <span class="keyword">using namespace </span>itpp; … … 77 77 78 78 <span class="comment">//Use the function linspace to define a vector:</span> 79 a = linspace(1.0, 2.0, 10);79 a = <a class="code" href="group__specmat.html#ge5632baa525e231b015f3d45f3503cac" title="Linspace (works in the same way as the matlab version).">linspace</a>(1.0, 2.0, 10); 80 80 81 81 <span class="comment">//Use a string of values to define a vector:</span> … … 94 94 95 95 <span class="comment">//Calculate the inverse of matrix A:</span> 96 B = inv(A);96 B = <a class="code" href="group__inverse.html#ge03240c214e525e2fea72b8e2c36bfdf" title="Inverse of real square matrix.Calculate the inverse of the real matrix .">inv</a>(A); 97 97 98 98 <span class="comment">//Print results:</span> … … 115 115 </pre></div><p> 116 116 If this is what you see, then congratulations! You have managed to compile your first it++ program! </div> 117 <hr size="1"><address style="text-align: right;"><small>Generated on T hu Apr 23 21:06:432009 for mixpp by 117 <hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 2 10:02:14 2009 for mixpp by 118 118 <a href="http://www.doxygen.org/index.html"> 119 119 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>