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
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
10 <div class="body-0">
\r
11 <div class="body-1">
\r
12 <div class="body-2">
\r
14 <h1>QVM: Quaternions, Vectors, Matrices</h1>
\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
21 <div class="RenoIncludeDIV"><p><span class="RenoEscape">#<!--<wiki>`#</wiki>--></span>include <<span class="RenoLink"><a href="boost_qvm_mat_index_hpp.html">boost/qvm/mat_index.hpp</a></span>></p>
\r
22 <pre>namespace boost
\r
24 namespace <span class="RenoLink"><a href="qvm.html">qvm</a></span>
\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><A>::value
\r
28 template <class A>
\r
29 typename <span class="RenoLink"><a href="mat_traits.html">mat_traits</a></span><A>::<span class="RenoLink"><a href="mat_traits_M_scalar_type.html">scalar_type</a></span> &
\r
30 <span class="RenoLink">mat_index_write</span>( A & a, int r, int c );</span>
\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 >= 0 && r < <span class="RenoLink"><a href="mat_traits.html">mat_traits</a></span><A>::<span class="RenoLink"><a href="mat_traits_Matrix_rows.html">rows</a></span> && c >= 0 && c < <span class="RenoLink"><a href="mat_traits.html">mat_traits</a></span><A>::<span class="RenoLink"><a href="mat_traits_Matrix_cols.html">cols</a></span></i>.</p>
\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><A>::<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
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
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