<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="previous" href="Gsl_matrix_complex_flat.html"> <link rel="next" href="Gsl_blas.html"> <link rel="Up" href="index.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Gsl_error" rel="Chapter" href="Gsl_error.html"> <link title="Gsl_ieee" rel="Chapter" href="Gsl_ieee.html"> <link title="Gsl_math" rel="Chapter" href="Gsl_math.html"> <link title="Gsl_complex" rel="Chapter" href="Gsl_complex.html"> <link title="Gsl_vector" rel="Chapter" href="Gsl_vector.html"> <link title="Gsl_vector_flat" rel="Chapter" href="Gsl_vector_flat.html"> <link title="Gsl_vector_complex" rel="Chapter" href="Gsl_vector_complex.html"> <link title="Gsl_vector_complex_flat" rel="Chapter" href="Gsl_vector_complex_flat.html"> <link title="Gsl_matrix" rel="Chapter" href="Gsl_matrix.html"> <link title="Gsl_matrix_flat" rel="Chapter" href="Gsl_matrix_flat.html"> <link title="Gsl_matrix_complex" rel="Chapter" href="Gsl_matrix_complex.html"> <link title="Gsl_matrix_complex_flat" rel="Chapter" href="Gsl_matrix_complex_flat.html"> <link title="Gsl_vectmat" rel="Chapter" href="Gsl_vectmat.html"> <link title="Gsl_blas" rel="Chapter" href="Gsl_blas.html"> <link title="Gsl_blas_flat" rel="Chapter" href="Gsl_blas_flat.html"> <link title="Gsl_blas_gen" rel="Chapter" href="Gsl_blas_gen.html"> <link title="Gsl_fun" rel="Chapter" href="Gsl_fun.html"> <link title="Gsl_permut" rel="Chapter" href="Gsl_permut.html"> <link title="Gsl_sort" rel="Chapter" href="Gsl_sort.html"> <link title="Gsl_linalg" rel="Chapter" href="Gsl_linalg.html"> <link title="Gsl_eigen" rel="Chapter" href="Gsl_eigen.html"> <link title="Gsl_poly" rel="Chapter" href="Gsl_poly.html"> <link title="Gsl_interp" rel="Chapter" href="Gsl_interp.html"> <link title="Gsl_rng" rel="Chapter" href="Gsl_rng.html"> <link title="Gsl_qrng" rel="Chapter" href="Gsl_qrng.html"> <link title="Gsl_randist" rel="Chapter" href="Gsl_randist.html"> <link title="Gsl_integration" rel="Chapter" href="Gsl_integration.html"> <link title="Gsl_fit" rel="Chapter" href="Gsl_fit.html"> <link title="Gsl_multifit" rel="Chapter" href="Gsl_multifit.html"> <link title="Gsl_multifit_nlin" rel="Chapter" href="Gsl_multifit_nlin.html"> <link title="Gsl_root" rel="Chapter" href="Gsl_root.html"> <link title="Gsl_multiroot" rel="Chapter" href="Gsl_multiroot.html"> <link title="Gsl_min" rel="Chapter" href="Gsl_min.html"> <link title="Gsl_multimin" rel="Chapter" href="Gsl_multimin.html"> <link title="Gsl_diff" rel="Chapter" href="Gsl_diff.html"> <link title="Gsl_cheb" rel="Chapter" href="Gsl_cheb.html"> <link title="Gsl_sum" rel="Chapter" href="Gsl_sum.html"> <link title="Gsl_fft" rel="Chapter" href="Gsl_fft.html"> <link title="Gsl_monte" rel="Chapter" href="Gsl_monte.html"> <link title="Gsl_siman" rel="Chapter" href="Gsl_siman.html"> <link title="Gsl_odeiv" rel="Chapter" href="Gsl_odeiv.html"> <link title="Gsl_histo" rel="Chapter" href="Gsl_histo.html"> <link title="Gsl_stats" rel="Chapter" href="Gsl_stats.html"> <link title="Gsl_wavelet" rel="Chapter" href="Gsl_wavelet.html"> <link title="Gsl_bspline" rel="Chapter" href="Gsl_bspline.html"> <link title="Gsl_const" rel="Chapter" href="Gsl_const.html"> <link title="Gsl_sf" rel="Chapter" href="Gsl_sf.html"> <link title="Gsl_cdf" rel="Chapter" href="Gsl_cdf.html"><link title="Real values" rel="Section" href="#3_Realvalues"> <link title="Complex values" rel="Section" href="#3_Complexvalues"> <link title="Generic vector operations" rel="Section" href="#3_Genericvectoroperations"> <link title="Generic matrix operations" rel="Section" href="#3_Genericmatrixoperations"> <link title="Other generic operations" rel="Section" href="#3_Othergenericoperations"> <title>ocamlgsl 0.6.0 : Gsl_vectmat</title> </head> <body> <div class="navbar"><a href="Gsl_matrix_complex_flat.html">Previous</a> <a href="index.html">Up</a> <a href="Gsl_blas.html">Next</a> </div> <center><h1>Module <a href="type_Gsl_vectmat.html">Gsl_vectmat</a></h1></center> <br> <pre><span class="keyword">module</span> Gsl_vectmat: <code class="code">sig</code> <a href="Gsl_vectmat.html">..</a> <code class="code">end</code></pre>Generic variant types for vectors and matrices<br> <hr width="100%"> <br> <a name="3_Realvalues"></a> <h3>Real values</h3><br> <pre><span class="keyword">type</span> <a name="TYPEvec"></a><code class="type"></code>vec = <code class="type">[ `V of <a href="Gsl_vector.html#TYPEvector">Gsl_vector.vector</a> | `VF of <a href="Gsl_vector_flat.html#TYPEvector">Gsl_vector_flat.vector</a> ]</code> </pre> <pre><span class="keyword">val</span> <a name="VALvec_convert"></a>vec_convert : <code class="type">?protect:bool -><br> [< `A of float array<br> | `V of <a href="Gsl_vector.html#TYPEvector">Gsl_vector.vector</a><br> | `VF of <a href="Gsl_vector_flat.html#TYPEvector">Gsl_vector_flat.vector</a> ] -><br> [> <a href="Gsl_vectmat.html#TYPEvec">vec</a> ]</code></pre><pre><span class="keyword">type</span> <a name="TYPEmat"></a><code class="type"></code>mat = <code class="type">[ `M of <a href="Gsl_matrix.html#TYPEmatrix">Gsl_matrix.matrix</a> | `MF of <a href="Gsl_matrix_flat.html#TYPEmatrix">Gsl_matrix_flat.matrix</a> ]</code> </pre> <pre><span class="keyword">val</span> <a name="VALmat_convert"></a>mat_convert : <code class="type">?protect:bool -><br> [< `A of float array * int * int<br> | `AA of float array array<br> | `M of <a href="Gsl_matrix.html#TYPEmatrix">Gsl_matrix.matrix</a><br> | `MF of <a href="Gsl_matrix_flat.html#TYPEmatrix">Gsl_matrix_flat.matrix</a> ] -><br> [> <a href="Gsl_vectmat.html#TYPEmat">mat</a> ]</code></pre><pre><span class="keyword">val</span> <a name="VALmat_flat"></a>mat_flat : <code class="type">?protect:bool -><br> [< `A of float array * int * int<br> | `AA of float array array<br> | `M of <a href="Gsl_matrix.html#TYPEmatrix">Gsl_matrix.matrix</a><br> | `MF of <a href="Gsl_matrix_flat.html#TYPEmatrix">Gsl_matrix_flat.matrix</a> ] -><br> <a href="Gsl_matrix_flat.html#TYPEmatrix">Gsl_matrix_flat.matrix</a></code></pre><br> <a name="3_Complexvalues"></a> <h3>Complex values</h3><br> <pre><span class="keyword">type</span> <a name="TYPEcvec"></a><code class="type"></code>cvec = <code class="type">[ `CV of <a href="Gsl_vector_complex.html#TYPEvector">Gsl_vector_complex.vector</a> | `CVF of <a href="Gsl_vector_complex_flat.html#TYPEvector">Gsl_vector_complex_flat.vector</a> ]</code> </pre> <pre><span class="keyword">type</span> <a name="TYPEcmat"></a><code class="type"></code>cmat = <code class="type">[ `CM of <a href="Gsl_matrix_complex.html#TYPEmatrix">Gsl_matrix_complex.matrix</a> | `CMF of <a href="Gsl_matrix_complex_flat.html#TYPEmatrix">Gsl_matrix_complex_flat.matrix</a> ]</code> </pre> <pre><span class="keyword">val</span> <a name="VALcmat_convert"></a>cmat_convert : <code class="type">?protect:bool -><br> [< `CA of <a href="Gsl_complex.html#TYPEcomplex_array">Gsl_complex.complex_array</a> * int * int<br> | `CM of <a href="Gsl_matrix_complex.html#TYPEmatrix">Gsl_matrix_complex.matrix</a><br> | `CMF of <a href="Gsl_matrix_complex_flat.html#TYPEmatrix">Gsl_matrix_complex_flat.matrix</a> ] -><br> [> <a href="Gsl_vectmat.html#TYPEcmat">cmat</a> ]</code></pre><br> <a name="3_Genericvectoroperations"></a> <h3>Generic vector operations</h3><br> <pre><span class="keyword">val</span> <a name="VALlength"></a>length : <code class="type">[< `CV of <a href="Gsl_vector_complex.html#TYPEvector">Gsl_vector_complex.vector</a><br> | `CVF of <a href="Gsl_vector_complex_flat.html#TYPEvector">Gsl_vector_complex_flat.vector</a><br> | `V of <a href="Gsl_vector.html#TYPEvector">Gsl_vector.vector</a><br> | `VF of <a href="Gsl_vector_flat.html#TYPEvector">Gsl_vector_flat.vector</a> ] -><br> int</code></pre><pre><span class="keyword">val</span> <a name="VALto_array"></a>to_array : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> float array</code></pre><pre><span class="keyword">val</span> <a name="VALv_copy"></a>v_copy : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> [> <a href="Gsl_vectmat.html#TYPEvec">vec</a> ]</code></pre><pre><span class="keyword">val</span> <a name="VALsubvector"></a>subvector : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> off:int -> len:int -> [> <a href="Gsl_vectmat.html#TYPEvec">vec</a> ]</code></pre><pre><span class="keyword">val</span> <a name="VALv_memcpy"></a>v_memcpy : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> [< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALv_add"></a>v_add : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> [< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALv_sub"></a>v_sub : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> [< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALv_mul"></a>v_mul : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> [< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALv_div"></a>v_div : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> [< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALv_max"></a>v_max : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> float</code></pre><pre><span class="keyword">val</span> <a name="VALv_min"></a>v_min : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> float</code></pre><pre><span class="keyword">val</span> <a name="VALv_minmax"></a>v_minmax : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> float * float</code></pre><pre><span class="keyword">val</span> <a name="VALv_max_index"></a>v_max_index : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> int</code></pre><pre><span class="keyword">val</span> <a name="VALv_min_index"></a>v_min_index : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> int</code></pre><pre><span class="keyword">val</span> <a name="VALv_minmax_index"></a>v_minmax_index : <code class="type">[< <a href="Gsl_vectmat.html#TYPEvec">vec</a> ] -> int * int</code></pre><br> <a name="3_Genericmatrixoperations"></a> <h3>Generic matrix operations</h3><br> <pre><span class="keyword">val</span> <a name="VALdims"></a>dims : <code class="type">[< `CM of <a href="Gsl_matrix_complex.html#TYPEmatrix">Gsl_matrix_complex.matrix</a><br> | `CMF of <a href="Gsl_matrix_complex_flat.html#TYPEmatrix">Gsl_matrix_complex_flat.matrix</a><br> | `M of <a href="Gsl_matrix.html#TYPEmatrix">Gsl_matrix.matrix</a><br> | `MF of <a href="Gsl_matrix_flat.html#TYPEmatrix">Gsl_matrix_flat.matrix</a> ] -><br> int * int</code></pre><pre><span class="keyword">val</span> <a name="VALtmp"></a>tmp : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> [> `M of <a href="Gsl_matrix.html#TYPEmatrix">Gsl_matrix.matrix</a> ]</code></pre><pre><span class="keyword">val</span> <a name="VALto_arrays"></a>to_arrays : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> float array array</code></pre><pre><span class="keyword">val</span> <a name="VALm_copy"></a>m_copy : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> [> <a href="Gsl_vectmat.html#TYPEmat">mat</a> ]</code></pre><pre><span class="keyword">val</span> <a name="VALm_memcpy"></a>m_memcpy : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> [< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALm_add"></a>m_add : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> [< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALm_sub"></a>m_sub : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> [< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALm_mul"></a>m_mul : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> [< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALm_div"></a>m_div : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> [< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALm_add_diagonal"></a>m_add_diagonal : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> float -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALswap_rows"></a>swap_rows : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> int -> int -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALswap_columns"></a>swap_columns : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> int -> int -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALswap_rowcol"></a>swap_rowcol : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> int -> int -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALtranspose"></a>transpose : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> [< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALtranspose_in_place"></a>transpose_in_place : <code class="type">[< <a href="Gsl_vectmat.html#TYPEmat">mat</a> ] -> unit</code></pre><br> <a name="3_Othergenericoperations"></a> <h3>Other generic operations</h3><br> <pre><span class="keyword">val</span> <a name="VALis_null"></a>is_null : <code class="type">[< `M of <a href="Gsl_matrix.html#TYPEmatrix">Gsl_matrix.matrix</a><br> | `MF of <a href="Gsl_matrix_flat.html#TYPEmatrix">Gsl_matrix_flat.matrix</a><br> | `V of <a href="Gsl_vector.html#TYPEvector">Gsl_vector.vector</a><br> | `VF of <a href="Gsl_vector_flat.html#TYPEvector">Gsl_vector_flat.vector</a> ] -><br> bool</code></pre><pre><span class="keyword">val</span> <a name="VALscale"></a>scale : <code class="type">[< `M of <a href="Gsl_matrix.html#TYPEmatrix">Gsl_matrix.matrix</a><br> | `MF of <a href="Gsl_matrix_flat.html#TYPEmatrix">Gsl_matrix_flat.matrix</a><br> | `V of <a href="Gsl_vector.html#TYPEvector">Gsl_vector.vector</a><br> | `VF of <a href="Gsl_vector_flat.html#TYPEvector">Gsl_vector_flat.vector</a> ] -><br> float -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALadd_constant"></a>add_constant : <code class="type">[< `M of <a href="Gsl_matrix.html#TYPEmatrix">Gsl_matrix.matrix</a><br> | `MF of <a href="Gsl_matrix_flat.html#TYPEmatrix">Gsl_matrix_flat.matrix</a><br> | `V of <a href="Gsl_vector.html#TYPEvector">Gsl_vector.vector</a><br> | `VF of <a href="Gsl_vector_flat.html#TYPEvector">Gsl_vector_flat.vector</a> ] -><br> float -> unit</code></pre></body></html>