<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 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"><title>ocamlgsl 0.6.0 : Gsl_ieee</title> </head> <body> <code class="code"><span class="keyword">sig</span><br> <span class="keyword">type</span> ieee_type = <span class="constructor">NAN</span> <span class="keywordsign">|</span> <span class="constructor">INF</span> <span class="keywordsign">|</span> <span class="constructor">NORMAL</span> <span class="keywordsign">|</span> <span class="constructor">DENORMAL</span> <span class="keywordsign">|</span> <span class="constructor">ZERO</span><br> <span class="keyword">type</span> float_rep = {<br> sign : int;<br> mantissa : string;<br> exponent : int;<br> ieee_type : <span class="constructor">Gsl_ieee</span>.ieee_type;<br> }<br> <span class="keyword">external</span> rep_of_float : float <span class="keywordsign">-></span> <span class="constructor">Gsl_ieee</span>.float_rep<br> = <span class="string">"ml_gsl_ieee_double_to_rep"</span><br> <span class="keyword">val</span> print : float <span class="keywordsign">-></span> string<br> <span class="keyword">type</span> precision = <span class="constructor">SINGLE</span> <span class="keywordsign">|</span> <span class="constructor">DOUBLE</span> <span class="keywordsign">|</span> <span class="constructor">EXTENDED</span><br> <span class="keyword">type</span> rounding = <span class="constructor">TO_NEAREST</span> <span class="keywordsign">|</span> <span class="constructor">DOWN</span> <span class="keywordsign">|</span> <span class="constructor">UP</span> <span class="keywordsign">|</span> <span class="constructor">TO_ZERO</span><br> <span class="keyword">type</span> exceptions =<br> <span class="constructor">MASK_INVALID</span><br> <span class="keywordsign">|</span> <span class="constructor">MASK_DENORMALIZED</span><br> <span class="keywordsign">|</span> <span class="constructor">MASK_DIVISION_BY_ZERO</span><br> <span class="keywordsign">|</span> <span class="constructor">MASK_OVERFLOW</span><br> <span class="keywordsign">|</span> <span class="constructor">MASK_UNDERFLOW</span><br> <span class="keywordsign">|</span> <span class="constructor">MASK_ALL</span><br> <span class="keywordsign">|</span> <span class="constructor">TRAP_INEXACT</span><br> <span class="keyword">external</span> set_mode :<br> ?precision:<span class="constructor">Gsl_ieee</span>.precision <span class="keywordsign">-></span><br> ?rounding:<span class="constructor">Gsl_ieee</span>.rounding <span class="keywordsign">-></span> <span class="constructor">Gsl_ieee</span>.exceptions list <span class="keywordsign">-></span> unit<br> = <span class="string">"ml_gsl_ieee_set_mode"</span><br> <span class="keyword">external</span> env_setup : unit <span class="keywordsign">-></span> unit = <span class="string">"ml_gsl_ieee_env_setup"</span><br> <span class="keyword">type</span> excepts =<br> <span class="constructor">FE_INEXACT</span><br> <span class="keywordsign">|</span> <span class="constructor">FE_DIVBYZERO</span><br> <span class="keywordsign">|</span> <span class="constructor">FE_UNDERFLOW</span><br> <span class="keywordsign">|</span> <span class="constructor">FE_OVERFLOW</span><br> <span class="keywordsign">|</span> <span class="constructor">FE_INVALID</span><br> <span class="keywordsign">|</span> <span class="constructor">FE_ALL_EXCEPT</span><br> <span class="keyword">external</span> clear_except : <span class="constructor">Gsl_ieee</span>.excepts list <span class="keywordsign">-></span> unit = <span class="string">"ml_feclearexcept"</span><br> <span class="keyword">external</span> test_except : <span class="constructor">Gsl_ieee</span>.excepts list <span class="keywordsign">-></span> <span class="constructor">Gsl_ieee</span>.excepts list<br> = <span class="string">"ml_fetestexcept"</span><br> <span class="keyword">end</span></code></body></html>