Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 5339

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgenericmatrix.cpp -->
  <title>Qt 4.8: QGenericMatrix Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtgui.html">QtGui</a></li>
<li>QGenericMatrix</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QGenericMatrix Class Reference</h1>
<!-- $$$QGenericMatrix-brief -->
<p>The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows. <a href="#details">More...</a></p>
<!-- @@@QGenericMatrix -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QGenericMatrix&gt;</span></pre><p>This class was introduced in Qt 4.6.</p>
<ul>
<li><a href="qgenericmatrix-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QGenericMatrix">QGenericMatrix</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QGenericMatrix-2">QGenericMatrix</a></b> ( const QGenericMatrix&lt;N, M, T&gt; &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QGenericMatrix-3">QGenericMatrix</a></b> ( const T * <i>values</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const T * </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#constData">constData</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#copyDataTo">copyDataTo</a></b> ( T * <i>values</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> T * </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#data">data</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const T * </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#data-2">data</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#fill">fill</a></b> ( T <i>value</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#isIdentity">isIdentity</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#setToIdentity">setToIdentity</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;M, N, T&gt; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#transposed">transposed</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-not-eq">operator!=</a></b> ( const QGenericMatrix&lt;N, M, T&gt; &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const T &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-28-29">operator()</a></b> ( int <i>row</i>, int <i>column</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> T &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-28-29-2">operator()</a></b> ( int <i>row</i>, int <i>column</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;N, M, T&gt; &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2a-eq">operator*=</a></b> ( T <i>factor</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;N, M, T&gt; &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2b-eq">operator+=</a></b> ( const QGenericMatrix&lt;N, M, T&gt; &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;N, M, T&gt; &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator--eq">operator-=</a></b> ( const QGenericMatrix&lt;N, M, T&gt; &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;N, M, T&gt; &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2f-eq">operator/=</a></b> ( T <i>divisor</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-eq-eq">operator==</a></b> ( const QGenericMatrix&lt;N, M, T&gt; &amp; <i>other</i> ) const</td></tr>
</table>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix2x2-typedef">QMatrix2x2</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix2x3-typedef">QMatrix2x3</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix2x4-typedef">QMatrix2x4</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix3x2-typedef">QMatrix3x2</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix3x3-typedef">QMatrix3x3</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix3x4-typedef">QMatrix3x4</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix4x2-typedef">QMatrix4x2</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#QMatrix4x3-typedef">QMatrix4x3</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;M1, M2, T&gt; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2a-47">operator*</a></b> ( const QGenericMatrix&lt;N, M2, T&gt; &amp; <i>m1</i>, const QGenericMatrix&lt;M1, N, T&gt; &amp; <i>m2</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;N, M, T&gt; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2a-48">operator*</a></b> ( T <i>factor</i>, const QGenericMatrix&lt;N, M, T&gt; &amp; <i>matrix</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;N, M, T&gt; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2a-49">operator*</a></b> ( const QGenericMatrix&lt;N, M, T&gt; &amp; <i>matrix</i>, T <i>factor</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;N, M, T&gt; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2b-37">operator+</a></b> ( const QGenericMatrix&lt;N, M, T&gt; &amp; <i>m1</i>, const QGenericMatrix&lt;N, M, T&gt; &amp; <i>m2</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;N, M, T&gt; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator--14">operator-</a></b> ( const QGenericMatrix&lt;N, M, T&gt; &amp; <i>m1</i>, const QGenericMatrix&lt;N, M, T&gt; &amp; <i>m2</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;N, M, T&gt; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator--22">operator-</a></b> ( const QGenericMatrix&lt;N, M, T&gt; &amp; <i>matrix</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGenericMatrix&lt;N, M, T&gt; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-2f-8">operator/</a></b> ( const QGenericMatrix&lt;N, M, T&gt; &amp; <i>matrix</i>, T <i>divisor</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-lt-lt-162">operator&lt;&lt;</a></b> ( QDataStream &amp; <i>stream</i>, const QGenericMatrix&lt;N, M, T&gt; &amp; <i>matrix</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgenericmatrix.html#operator-gt-gt-85">operator&gt;&gt;</a></b> ( QDataStream &amp; <i>stream</i>, QGenericMatrix&lt;N, M, T&gt; &amp; <i>matrix</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QGenericMatrix-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows.</p>
<p>The QGenericMatrix template has three parameters:</p>
<table class="generic">
<tr valign="top" class="odd"><td >N</td><td >Number of columns.</td></tr>
<tr valign="top" class="even"><td >M</td><td >Number of rows.</td></tr>
<tr valign="top" class="odd"><td >T</td><td >Element type that is visible to users of the class.</td></tr>
</table>
</div>
<p><b>See also </b><a href="qmatrix4x4.html">QMatrix4x4</a>.</p>
<!-- @@@QGenericMatrix -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGenericMatrix[overload1]$$$QGenericMatrix -->
<h3 class="fn"><a name="QGenericMatrix"></a>QGenericMatrix::<span class="name">QGenericMatrix</span> ()</h3>
<p>Constructs a NxM identity matrix.</p>
<!-- @@@QGenericMatrix -->
<!-- $$$QGenericMatrix$$$QGenericMatrixconstQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="QGenericMatrix-2"></a>QGenericMatrix::<span class="name">QGenericMatrix</span> ( const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>other</i> )</h3>
<p>Constructs a copy of <i>other</i>.</p>
<!-- @@@QGenericMatrix -->
<!-- $$$QGenericMatrix$$$QGenericMatrixconstT* -->
<h3 class="fn"><a name="QGenericMatrix-3"></a>QGenericMatrix::<span class="name">QGenericMatrix</span> ( const <span class="type">T</span> * <i>values</i> )</h3>
<p>Constructs a matrix from the given N * M floating-point <i>values</i>. The contents of the array <i>values</i> is assumed to be in row-major order.</p>
<p><b>See also </b><a href="qgenericmatrix.html#copyDataTo">copyDataTo</a>().</p>
<!-- @@@QGenericMatrix -->
<!-- $$$constData[overload1]$$$constData -->
<h3 class="fn"><a name="constData"></a>const <span class="type">T</span> * QGenericMatrix::<span class="name">constData</span> () const</h3>
<p>Returns a constant pointer to the raw data of this matrix.</p>
<p><b>See also </b><a href="qgenericmatrix.html#data">data</a>().</p>
<!-- @@@constData -->
<!-- $$$copyDataTo[overload1]$$$copyDataToT* -->
<h3 class="fn"><a name="copyDataTo"></a><span class="type">void</span> QGenericMatrix::<span class="name">copyDataTo</span> ( <span class="type">T</span> * <i>values</i> ) const</h3>
<p>Retrieves the N * M items in this matrix and copies them to <i>values</i> in row-major order.</p>
<!-- @@@copyDataTo -->
<!-- $$$data[overload1]$$$data -->
<h3 class="fn"><a name="data"></a><span class="type">T</span> * QGenericMatrix::<span class="name">data</span> ()</h3>
<p>Returns a pointer to the raw data of this matrix.</p>
<p><b>See also </b><a href="qgenericmatrix.html#constData">constData</a>().</p>
<!-- @@@data -->
<!-- $$$data$$$data -->
<h3 class="fn"><a name="data-2"></a>const <span class="type">T</span> * QGenericMatrix::<span class="name">data</span> () const</h3>
<p>Returns a constant pointer to the raw data of this matrix.</p>
<p><b>See also </b><a href="qgenericmatrix.html#constData">constData</a>().</p>
<!-- @@@data -->
<!-- $$$fill[overload1]$$$fillT -->
<h3 class="fn"><a name="fill"></a><span class="type">void</span> QGenericMatrix::<span class="name">fill</span> ( <span class="type">T</span> <i>value</i> )</h3>
<p>Fills all elements of this matrix with <i>value</i>.</p>
<!-- @@@fill -->
<!-- $$$isIdentity[overload1]$$$isIdentity -->
<h3 class="fn"><a name="isIdentity"></a><span class="type">bool</span> QGenericMatrix::<span class="name">isIdentity</span> () const</h3>
<p>Returns true if this matrix is the identity; false otherwise.</p>
<p><b>See also </b><a href="qgenericmatrix.html#setToIdentity">setToIdentity</a>().</p>
<!-- @@@isIdentity -->
<!-- $$$setToIdentity[overload1]$$$setToIdentity -->
<h3 class="fn"><a name="setToIdentity"></a><span class="type">void</span> QGenericMatrix::<span class="name">setToIdentity</span> ()</h3>
<p>Sets this matrix to the identity.</p>
<p><b>See also </b><a href="qgenericmatrix.html#isIdentity">isIdentity</a>().</p>
<!-- @@@setToIdentity -->
<!-- $$$transposed[overload1]$$$transposed -->
<h3 class="fn"><a name="transposed"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">M</span>, <span class="type">N</span>, <span class="type">T</span>&gt; QGenericMatrix::<span class="name">transposed</span> () const</h3>
<p>Returns this matrix, transposed about its diagonal.</p>
<!-- @@@transposed -->
<!-- $$$operator!=[overload1]$$$operator!=constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QGenericMatrix::<span class="name">operator!=</span> ( const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>other</i> ) const</h3>
<p>Returns true if this matrix is not identical to <i>other</i>; false otherwise.</p>
<!-- @@@operator!= -->
<!-- $$$operator()[overload1]$$$operator()intint -->
<h3 class="fn"><a name="operator-28-29"></a>const <span class="type">T</span> &amp; QGenericMatrix::<span class="name">operator()</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i> ) const</h3>
<p>Returns a constant reference to the element at position (<i>row</i>, <i>column</i>) in this matrix.</p>
<!-- @@@operator() -->
<!-- $$$operator()$$$operator()intint -->
<h3 class="fn"><a name="operator-28-29-2"></a><span class="type">T</span> &amp; QGenericMatrix::<span class="name">operator()</span> ( <span class="type">int</span> <i>row</i>, <span class="type">int</span> <i>column</i> )</h3>
<p>Returns a reference to the element at position (<i>row</i>, <i>column</i>) in this matrix so that the element can be assigned to.</p>
<!-- @@@operator() -->
<!-- $$$operator*=[overload1]$$$operator*=T -->
<h3 class="fn"><a name="operator-2a-eq"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; QGenericMatrix::<span class="name">operator*=</span> ( <span class="type">T</span> <i>factor</i> )</h3>
<p>Multiplies all elements of this matrix by <i>factor</i>.</p>
<!-- @@@operator*= -->
<!-- $$$operator+=[overload1]$$$operator+=constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-2b-eq"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; QGenericMatrix::<span class="name">operator+=</span> ( const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>other</i> )</h3>
<p>Adds the contents of <i>other</i> to this matrix.</p>
<!-- @@@operator+= -->
<!-- $$$operator-=[overload1]$$$operator-=constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator--eq"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; QGenericMatrix::<span class="name">operator-=</span> ( const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>other</i> )</h3>
<p>Subtracts the contents of <i>other</i> from this matrix.</p>
<!-- @@@operator-= -->
<!-- $$$operator/=[overload1]$$$operator/=T -->
<h3 class="fn"><a name="operator-2f-eq"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; QGenericMatrix::<span class="name">operator/=</span> ( <span class="type">T</span> <i>divisor</i> )</h3>
<p>Divides all elements of this matrix by <i>divisor</i>.</p>
<!-- @@@operator/= -->
<!-- $$$operator==[overload1]$$$operator==constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QGenericMatrix::<span class="name">operator==</span> ( const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>other</i> ) const</h3>
<p>Returns true if this matrix is identical to <i>other</i>; false otherwise.</p>
<!-- @@@operator== -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$QMatrix2x2 -->
<h3 class="fn"><a name="QMatrix2x2-typedef"></a>typedef <span class="name">QMatrix2x2</span></h3>
<p>The QMatrix2x2 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 2 columns, 2 rows, and qreal as the element type.</p>
<!-- @@@QMatrix2x2 -->
<!-- $$$QMatrix2x3 -->
<h3 class="fn"><a name="QMatrix2x3-typedef"></a>typedef <span class="name">QMatrix2x3</span></h3>
<p>The QMatrix2x3 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 2 columns, 3 rows, and qreal as the element type.</p>
<!-- @@@QMatrix2x3 -->
<!-- $$$QMatrix2x4 -->
<h3 class="fn"><a name="QMatrix2x4-typedef"></a>typedef <span class="name">QMatrix2x4</span></h3>
<p>The QMatrix2x4 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 2 columns, 4 rows, and qreal as the element type.</p>
<!-- @@@QMatrix2x4 -->
<!-- $$$QMatrix3x2 -->
<h3 class="fn"><a name="QMatrix3x2-typedef"></a>typedef <span class="name">QMatrix3x2</span></h3>
<p>The QMatrix3x2 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 3 columns, 2 rows, and qreal as the element type.</p>
<!-- @@@QMatrix3x2 -->
<!-- $$$QMatrix3x3 -->
<h3 class="fn"><a name="QMatrix3x3-typedef"></a>typedef <span class="name">QMatrix3x3</span></h3>
<p>The QMatrix3x3 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 3 columns, 3 rows, and qreal as the element type.</p>
<!-- @@@QMatrix3x3 -->
<!-- $$$QMatrix3x4 -->
<h3 class="fn"><a name="QMatrix3x4-typedef"></a>typedef <span class="name">QMatrix3x4</span></h3>
<p>The QMatrix3x4 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 3 columns, 4 rows, and qreal as the element type.</p>
<!-- @@@QMatrix3x4 -->
<!-- $$$QMatrix4x2 -->
<h3 class="fn"><a name="QMatrix4x2-typedef"></a>typedef <span class="name">QMatrix4x2</span></h3>
<p>The QMatrix4x2 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 4 columns, 2 rows, and qreal as the element type.</p>
<!-- @@@QMatrix4x2 -->
<!-- $$$QMatrix4x3 -->
<h3 class="fn"><a name="QMatrix4x3-typedef"></a>typedef <span class="name">QMatrix4x3</span></h3>
<p>The QMatrix4x3 type defines a convenient instantiation of the <a href="qgenericmatrix.html">QGenericMatrix</a> template for 4 columns, 3 rows, and qreal as the element type.</p>
<!-- @@@QMatrix4x3 -->
<!-- $$$operator*$$$operator*constQGenericMatrix<N,M2,T>&constQGenericMatrix<M1,N,T>& -->
<h3 class="fn"><a name="operator-2a-47"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">M1</span>, <span class="type">M2</span>, <span class="type">T</span>&gt; <span class="name">operator*</span> ( const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M2</span>, <span class="type">T</span>&gt; &amp; <i>m1</i>, const <span class="type">QGenericMatrix</span>&lt;<span class="type">M1</span>, <span class="type">N</span>, <span class="type">T</span>&gt; &amp; <i>m2</i> )</h3>
<p>Returns the product of the NxM2 matrix <i>m1</i> and the M1xN matrix <i>m2</i> to produce a M1xM2 matrix result.</p>
<!-- @@@operator* -->
<!-- $$$operator*$$$operator*TconstQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-2a-48"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; <span class="name">operator*</span> ( <span class="type">T</span> <i>factor</i>, const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>matrix</i> )</h3>
<p>Returns the result of multiplying all elements of <i>matrix</i> by <i>factor</i>.</p>
<!-- @@@operator* -->
<!-- $$$operator*$$$operator*constQGenericMatrix<N,M,T>&T -->
<h3 class="fn"><a name="operator-2a-49"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; <span class="name">operator*</span> ( const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>matrix</i>, <span class="type">T</span> <i>factor</i> )</h3>
<p>Returns the result of multiplying all elements of <i>matrix</i> by <i>factor</i>.</p>
<!-- @@@operator* -->
<!-- $$$operator+$$$operator+constQGenericMatrix<N,M,T>&constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-2b-37"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; <span class="name">operator+</span> ( const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>m1</i>, const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>m2</i> )</h3>
<p>Returns the sum of <i>m1</i> and <i>m2</i>.</p>
<!-- @@@operator+ -->
<!-- $$$operator-$$$operator-constQGenericMatrix<N,M,T>&constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator--14"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; <span class="name">operator-</span> ( const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>m1</i>, const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>m2</i> )</h3>
<p>Returns the difference of <i>m1</i> and <i>m2</i>.</p>
<!-- @@@operator- -->
<!-- $$$operator-$$$operator-constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator--22"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; <span class="name">operator-</span> ( const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>matrix</i> )</h3>
<p>This is an overloaded function.</p>
<p>Returns the negation of <i>matrix</i>.</p>
<!-- @@@operator- -->
<!-- $$$operator/$$$operator/constQGenericMatrix<N,M,T>&T -->
<h3 class="fn"><a name="operator-2f-8"></a><span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; <span class="name">operator/</span> ( const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>matrix</i>, <span class="type">T</span> <i>divisor</i> )</h3>
<p>Returns the result of dividing all elements of <i>matrix</i> by <i>divisor</i>.</p>
<!-- @@@operator/ -->
<!-- $$$operator<<$$$operator<<QDataStream&constQGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-lt-lt-162"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <span class="name">operator&lt;&lt;</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>stream</i>, const <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>matrix</i> )</h3>
<p>Writes the given <i>matrix</i> to the given <i>stream</i> and returns a reference to the stream.</p>
<p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator<< -->
<!-- $$$operator>>$$$operator>>QDataStream&QGenericMatrix<N,M,T>& -->
<h3 class="fn"><a name="operator-gt-gt-85"></a><span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <span class="name">operator&gt;&gt;</span> ( <span class="type"><a href="qdatastream.html">QDataStream</a></span> &amp; <i>stream</i>, <span class="type">QGenericMatrix</span>&lt;<span class="type">N</span>, <span class="type">M</span>, <span class="type">T</span>&gt; &amp; <i>matrix</i> )</h3>
<p>Reads a NxM matrix from the given <i>stream</i> into the given <i>matrix</i> and returns a reference to the stream.</p>
<p><b>See also </b><a href="datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator>> -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>