1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 span.virtual_style 22 { 23 font-size : 8pt; 24 color : white; 25 font-weight : bold; 26 background : #0a0; 27 border-left : solid 1px #0f0; 28 border-top : solid 1px #0f0; 29 border-right : solid 1px #060; 30 border-bottom : solid 1px #060; 31 padding-left : 2px; 32 padding-right : 2px; 33 } 34 span.protected_style 35 { 36 font-size : 8pt; 37 color : white; 38 font-weight : bold; 39 background : #444; 40 border-left : solid 1px #ccc; 41 border-top : solid 1px #ccc; 42 border-right : solid 1px #222; 43 border-bottom : solid 1px #222; 44 padding-left : 2px; 45 padding-right : 2px; 46 } 47 --></style> 48<title>nn::gd::CTR::Utils</title> 49 </head> 50 <body> 51<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/gd/Overview.html">gd</a>::<a href="../../../../nn/gd/CTR/Overview.html">CTR</a>::Utils</CODE> Class</h1> 52<h2>Syntax</h2> 53 <div class="section"> 54<pre class="definition">class Utils</pre> 55 </div> 56<h2>Description</h2> 57 <div class="section"> 58<p>This module includes several utilities that convert data to hardware formats and perform other tasks.</p><p><anchor id="classnn_1_1gd_1_1_c_t_r_1_1_utils_1utilityFunction" /></p><!-- write here --></div> 59 <a name="function" id="function"> 60<h2>Member Functions</h2> 61 <div class="section"> 62 <table class="members"> 63 <tr> 64 <td width="100"> 65<span class="static_style" title="static">S</span> </td> 66 <th> 67<a href="../../../../nn/gd/CTR/Utils/ConvertStartEndToScaleBias.html"><CODE>ConvertStartEndToScaleBias</CODE></a> 68 </th> 69<td>Converts start and end values to scale and bias.</td> 70 </tr> 71 <tr> 72 <td width="100"> 73<span class="static_style" title="static">S</span> </td> 74 <th> 75<a href="../../../../nn/gd/CTR/Utils/FloatToUnsignedByte.html"><CODE>FloatToUnsignedByte</CODE></a> 76 </th> 77<td>Converts <CODE>float32</CODE> to <CODE>u8</CODE>.</td> 78 </tr> 79 <tr> 80 <td width="100"> 81<span class="static_style" title="static">S</span> </td> 82 <th> 83<a href="../../../../nn/gd/CTR/Utils/FloatToUnsignedByteNoClamp.html"><CODE>FloatToUnsignedByteNoClamp</CODE></a> 84 </th> 85<td>Converts <CODE>float32</CODE> to <CODE>u8</CODE> without clamping.</td> 86 </tr> 87 <tr> 88 <td width="100"> 89<span class="static_style" title="static">S</span> </td> 90 <th> 91<a href="../../../../nn/gd/CTR/Utils/FloatToSignedByte.html"><CODE>FloatToSignedByte</CODE></a> 92 </th> 93<td>Converts a floating point value to a signed byte value.</td> 94 </tr> 95 <tr> 96 <td width="100"> 97<span class="static_style" title="static">S</span> </td> 98 <th> 99<a href="../../../../nn/gd/CTR/Utils/Float32ToFloat16.html"><CODE>Float32ToFloat16</CODE></a> 100 </th> 101<td>Converts <CODE>float32</CODE> to <CODE>float16</CODE>.</td> 102 </tr> 103 <tr> 104 <td width="100"> 105<span class="static_style" title="static">S</span> </td> 106 <th> 107<a href="../../../../nn/gd/CTR/Utils/Float32ToFix13Fraction11.html"><CODE>Float32ToFix13Fraction11</CODE></a> 108 </th> 109<td>Converts <CODE>float32</CODE> to <CODE>fixed13</CODE> (11 fractional bits).</td> 110 </tr> 111 <tr> 112 <td width="100"> 113<span class="static_style" title="static">S</span> </td> 114 <th> 115<a href="../../../../nn/gd/CTR/Utils/Float32ToUnsignedFix12.html"><CODE>Float32ToUnsignedFix12</CODE></a> 116 </th> 117<td>Converts <CODE>float32</CODE> to unsigned <CODE>fixed12</CODE>.</td> 118 </tr> 119 <tr> 120 <td width="100"> 121<span class="static_style" title="static">S</span> </td> 122 <th> 123<a href="../../../../nn/gd/CTR/Utils/Float32ToFix12.html"><CODE>Float32ToFix12</CODE></a> 124 </th> 125<td>Converts <CODE>float32</CODE> to signed <CODE>fixed12</CODE>.</td> 126 </tr> 127 <tr> 128 <td width="100"> 129<span class="static_style" title="static">S</span> </td> 130 <th> 131<a href="../../../../nn/gd/CTR/Utils/Float32ToFix12Fraction11.html"><CODE>Float32ToFix12Fraction11</CODE></a> 132 </th> 133<td>Converts <CODE>float32</CODE> to <CODE>fixed12</CODE> (11 fractional bits).</td> 134 </tr> 135 <tr> 136 <td width="100"> 137<span class="static_style" title="static">S</span> </td> 138 <th> 139<a href="../../../../nn/gd/CTR/Utils/Float32ToUnsignedFix11.html"><CODE>Float32ToUnsignedFix11</CODE></a> 140 </th> 141<td>Converts <CODE>float32</CODE> to unsigned <CODE>fixed11</CODE>.</td> 142 </tr> 143 <tr> 144 <td width="100"> 145<span class="static_style" title="static">S</span> </td> 146 <th> 147<a href="../../../../nn/gd/CTR/Utils/Float32ToFix8Fraction7.html"><CODE>Float32ToFix8Fraction7</CODE></a> 148 </th> 149<td>Converts <CODE>float32</CODE> to <CODE>fixed8</CODE> (7 fractional bits).</td> 150 </tr> 151 <tr> 152 <td width="100"> 153<span class="static_style" title="static">S</span> </td> 154 <th> 155<a href="../../../../nn/gd/CTR/Utils/Float32ToFix16.html"><CODE>Float32ToFix16</CODE></a> 156 </th> 157<td>Converts <CODE>float32</CODE> to signed <CODE>fixed16</CODE>.</td> 158 </tr> 159 <tr> 160 <td width="100"> 161<span class="static_style" title="static">S</span> </td> 162 <th> 163<a href="../../../../nn/gd/CTR/Utils/Float32ToFloat24.html"><CODE>Float32ToFloat24</CODE></a> 164 </th> 165<td>Converts <CODE>float32</CODE> to <CODE>float24</CODE>.</td> 166 </tr> 167 <tr> 168 <td width="100"> 169<span class="static_style" title="static">S</span> </td> 170 <th> 171<a href="../../../../nn/gd/CTR/Utils/Float32ToFloat31.html"><CODE>Float32ToFloat31</CODE></a> 172 </th> 173<td>Converts <CODE>float32</CODE> to <CODE>float31</CODE>.</td> 174 </tr> 175 <tr> 176 <td width="100"> 177<span class="static_style" title="static">S</span> </td> 178 <th> 179<a href="../../../../nn/gd/CTR/Utils/Float32ToFloat20.html"><CODE>Float32ToFloat20</CODE></a> 180 </th> 181<td>Converts <CODE>float32</CODE> to <CODE>float20</CODE>.</td> 182 </tr> 183 <tr> 184 <td width="100"> 185<span class="static_style" title="static">S</span> </td> 186 <th> 187<a href="../../../../nn/gd/CTR/Utils/Float32ToFix13Fraction8.html"><CODE>Float32ToFix13Fraction8</CODE></a> 188 </th> 189<td>Converts <CODE>float32</CODE> to <CODE>fixed13</CODE> (8 fractional bits).</td> 190 </tr> 191 <tr> 192 <td width="100"> 193<span class="static_style" title="static">S</span> </td> 194 <th> 195<a href="../../../../nn/gd/CTR/Utils/Float32ToUnsignedFix16.html"><CODE>Float32ToUnsignedFix16</CODE></a> 196 </th> 197<td>Converts <CODE>float32</CODE> to unsigned <CODE>fixed16</CODE>.</td> 198 </tr> 199 <tr> 200 <td width="100"> 201<span class="static_style" title="static">S</span> </td> 202 <th> 203<a href="../../../../nn/gd/CTR/Utils/Float32ToUnsignedFix24.html"><CODE>Float32ToUnsignedFix24</CODE></a> 204 </th> 205<td>Converts <CODE>float32</CODE> to unsigned <CODE>fixed24</CODE>.</td> 206 </tr> 207 <tr> 208 <td width="100"> 209<span class="static_style" title="static">S</span> </td> 210 <th> 211<a href="../../../../nn/gd/CTR/Utils/Float32ToUnsignedFix8Fraction0.html">Float32ToUnsignedFix8Fraction0</a> 212 </th> 213<td>Converts <CODE>float32</CODE> to <CODE>fixed8</CODE> (0 fractional bits).</td> 214 </tr> 215 <tr> 216 <td width="100"> 217<span class="static_style" title="static">S</span> </td> 218 <th> 219<a href="../../../../nn/gd/CTR/Utils/Float32ToUnsignedFix24Fraction8.html">Float32ToUnsignedFix24Fraction8</a> 220 </th> 221<td>Converts <CODE>float32</CODE> to <CODE>fixed11</CODE> (8 fractional bits).</td> 222 </tr> </table> 223 </div> 224 </a> 225<h2>Revision History</h2> 226 <div class="section"> 227 <dl class="history"> 228 <dt>2011/02/15</dt> 229<dd>Initial version.<br /> 230 </dd> 231 </dl> 232 </div> 233 <hr><p>CONFIDENTIAL</p></body> 234</html> 235