Imported Upstream version 1.63.0
[platform/upstream/boost.git] / libs / qvm / doc / mat_index_write.html
1 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'\r
2 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>\r
3 <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>\r
4 <head>\r
5         <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>\r
6         <title>mat_index_write</title>\r
7         <link href='reno.css' type='text/css' rel='stylesheet'/>\r
8 </head>\r
9 <body>\r
10 <div class="body-0">\r
11 <div class="body-1">\r
12 <div class="body-2">\r
13 <div>\r
14 <h1>QVM: Quaternions, Vectors, Matrices</h1>\r
15 </div>\r
16 <!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->\r
17 <!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->\r
18 <!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->\r
19 <div class="RenoIncludeDIV"><div class="RenoAutoDIV"><h3>mat_index_write</h3>\r
20 </div>\r
21 <div class="RenoIncludeDIV"><p><span class="RenoEscape">&#35;<!--<wiki>`&#35;</wiki>--></span>include &lt;<span class="RenoLink"><a href="boost_qvm_mat_index_hpp.html">boost/qvm/mat_index.hpp</a></span>&gt;</p>\r
22 <pre>namespace boost\r
23 {\r
24     namespace <span class="RenoLink"><a href="qvm.html">qvm</a></span>\r
25     {\r
26 <span class="RenoIncludeSPAN">        //Only <span class="RenoLink"><a href="SFINAE_enable_if.html">enabled if</a></span>:\r
27         //  <span class="RenoLink"><a href="is_mat.html">is_mat</a></span>&lt;A&gt;::value\r
28         template &lt;class A&gt;\r
29         typename <span class="RenoLink"><a href="mat_traits.html">mat_traits</a></span>&lt;A&gt;::<span class="RenoLink"><a href="mat_traits_M_scalar_type.html">scalar_type</a></span> &amp;\r
30         <span class="RenoLink">mat_index_write</span>( A &amp; a, int r, int c );</span>\r
31     }\r
32 }</pre>\r
33 </div><h4>Returns:</h4>\r
34 <p>A mutable reference to the element of <i>a</i> at row <i>r</i> and column <i>c</i>.</p>\r
35 <h4>Preconditions:</h4>\r
36 <p><i>r &gt;= 0 &amp;&amp; r &lt; <span class="RenoLink"><a href="mat_traits.html">mat_traits</a></span>&lt;A&gt;::<span class="RenoLink"><a href="mat_traits_Matrix_rows.html">rows</a></span> &amp;&amp; c &gt;= 0 &amp;&amp; c &lt; <span class="RenoLink"><a href="mat_traits.html">mat_traits</a></span>&lt;A&gt;::<span class="RenoLink"><a href="mat_traits_Matrix_cols.html">cols</a></span></i>.</p>\r
37 <h4>Note:</h4>\r
38 <p>This function uses template metaprogramming and can be used even if the optional access function <i><span class="RenoLink"><a href="mat_traits.html">mat_traits</a></span>&lt;A&gt;::<span class="RenoLink"><a href="mat_traits_M_write_element_idx.html">write_element_idx</a></span></i> is not available.</p>\r
39 </div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div>\r
40 See also: <span class="RenoPageList"><a href="boost_qvm_mat_index_hpp.html">boost/qvm/mat_index.hpp</a></span>\r
41 </div>\r
42 <!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->\r
43 <!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->\r
44 <!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->\r
45 <div id="footer">\r
46 <p>\r
47 <a class="logo" href="http://jigsaw.w3.org/css-validator/check/referer"><img class="logo_pic" src="valid-css.png" alt="Valid CSS" height="31" width="88"/></a>\r
48 <a class="logo" href="http://validator.w3.org/check?uri=referer"><img class="logo_pic" src="valid-xhtml.png" alt="Valid XHTML 1.0" height="31" width="88"/></a>\r
49 <small>Copyright (c) 2008-2016 by Emil Dotchevski and Reverge Studios, Inc.<br/>\r
50 Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</small>\r
51 </p>\r
52 </div>\r
53 </div>\r
54 </div>\r
55 </div>\r
56 </body>\r
57 </html>\r