<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>matrix.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.18 --> <center> <a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center> <hr><h1>matrix.h</h1><a href="matrix_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#include &lt;stdio.h&gt;</span> 00002 <span class="preprocessor">#include &lt;stdlib.h&gt;</span> 00003 <span class="preprocessor">#include &lt;assert.h&gt;</span> 00004 <span class="preprocessor">#include &lt;math.h&gt;</span> 00005  00006 <span class="preprocessor">#ifndef __MATRIX_H__</span> 00007 <span class="preprocessor"></span><span class="preprocessor">#define __MATRIX_H__</span> 00008 <span class="preprocessor"></span> <a name="l00009"></a><a class="code" href="structmatrix__t.html">00009</a> <span class="keyword">struct </span><a class="code" href="structmatrix__t.html">matrix_t</a> { <a name="l00010"></a><a class="code" href="structmatrix__t.html#m0">00010</a>         <span class="keywordtype">int</span> <a class="code" href="structmatrix__t.html#m0">nbline</a>; <a name="l00011"></a><a class="code" href="structmatrix__t.html#m1">00011</a>         <span class="keywordtype">int</span> <a class="code" href="structmatrix__t.html#m1">nbcolumn</a>; <a name="l00012"></a><a class="code" href="structmatrix__t.html#m2">00012</a>         <span class="keywordtype">double</span> **<a class="code" href="structmatrix__t.html#m2">mat</a>; 00013 }; 00014  00015  00016 <span class="keyword">struct </span><a class="code" href="structmatrix__t.html">matrix_t</a> * mat_prod (struct matrix_t *a, struct matrix_t *b); 00017 <span class="keywordtype">void</span> <a class="code" href="matrix_8h.html#a1">mat_prod2</a> (<span class="keyword">struct</span> matrix_t *a, <span class="keyword">struct</span> matrix_t *b, <span class="keyword">struct</span> matrix_t *c); 00018 <span class="keyword">struct </span>matrix_t * new_matrix (int nbline, int nbcolumn); 00019 <span class="keywordtype">void</span> <a class="code" href="matrix_8c.html#a5">free_matrix</a> (<span class="keyword">struct</span> matrix_t *c); 00020 <span class="keywordtype">void</span> <a class="code" href="matrix_8c.html#a7">dump_matrix</a> (<span class="keywordtype">char</span> *txt, <span class="keyword">struct</span> matrix_t *m); 00021  00022  <a name="l00023"></a><a class="code" href="structvectorv__t.html">00023</a> <span class="keyword">struct </span><a class="code" href="structvectorv__t.html">vectorv_t</a> { <a name="l00024"></a><a class="code" href="structvectorv__t.html#m0">00024</a>         <span class="keywordtype">int</span> <a class="code" href="structvectorv__t.html#m0">length</a>; <a name="l00025"></a><a class="code" href="structvectorv__t.html#m1">00025</a>         <span class="keywordtype">double</span> *<a class="code" href="structvectorv__t.html#m1">mat</a>; 00026 }; 00027  00028 <span class="keyword">struct </span><a class="code" href="structvectorv__t.html">vectorv_t</a> * new_vectorv (int length); 00029 <span class="keywordtype">void</span> <a class="code" href="matrix_8c.html#a2">free_vectorv</a> (<span class="keyword">struct</span> <a class="code" href="structvectorv__t.html">vectorv_t</a> *v); 00030 <span class="keywordtype">void</span> <a class="code" href="matrix_8c.html#a3">dump_vectorv</a> (<span class="keywordtype">char</span> *s, <span class="keyword">struct</span> <a class="code" href="structvectorv__t.html">vectorv_t</a> *v); 00031 <span class="keywordtype">void</span> <a class="code" href="matrix_8c.html#a0">MATxVECTV</a> (<span class="keyword">struct</span> <a class="code" href="structvectorv__t.html">vectorv_t</a> *x, <span class="keyword">struct</span> matrix_t *a, <span class="keyword">struct</span> <a class="code" href="structvectorv__t.html">vectorv_t</a> *y); 00032  00033 <span class="preprocessor">#endif</span> </pre></div><hr> <small>Documentation of <i>ray2mesh</i> libraries</small> </body> </html> 
