Qt 4.8
Public Functions | Private Functions | Properties | Friends | Related Functions | List of all members
QGenericMatrix< N, M, T > Class Template Reference

The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows. More...

#include <qgenericmatrix.h>

Public Functions

const T * constData () const
 Returns a constant pointer to the raw data of this matrix. More...
 
void copyDataTo (T *values) const
 Retrieves the N * M items in this matrix and copies them to values in row-major order. More...
 
T * data ()
 Returns a pointer to the raw data of this matrix. More...
 
const T * data () const
 Returns a constant pointer to the raw data of this matrix. More...
 
void fill (T value)
 Fills all elements of this matrix with value. More...
 
bool isIdentity () const
 Returns true if this matrix is the identity; false otherwise. More...
 
bool operator!= (const QGenericMatrix< N, M, T > &other) const
 Returns true if this matrix is not identical to other; false otherwise. More...
 
const T & operator() (int row, int column) const
 Returns a constant reference to the element at position (row, column) in this matrix. More...
 
T & operator() (int row, int column)
 Returns a reference to the element at position (row, column) in this matrix so that the element can be assigned to. More...
 
QGenericMatrix< N, M, T > & operator*= (T factor)
 Multiplies all elements of this matrix by factor. More...
 
QGenericMatrix< N, M, T > & operator+= (const QGenericMatrix< N, M, T > &other)
 Adds the contents of other to this matrix. More...
 
QGenericMatrix< N, M, T > & operator-= (const QGenericMatrix< N, M, T > &other)
 Subtracts the contents of other from this matrix. More...
 
QGenericMatrix< N, M, T > & operator/= (T divisor)
 Divides all elements of this matrix by divisor. More...
 
bool operator== (const QGenericMatrix< N, M, T > &other) const
 Returns true if this matrix is identical to other; false otherwise. More...
 
 QGenericMatrix ()
 
 QGenericMatrix (const QGenericMatrix< N, M, T > &other)
 Constructs a copy of other. More...
 
 QGenericMatrix (const T *values)
 Constructs a matrix from the given N * M floating-point values. More...
 
void setToIdentity ()
 Sets this matrix to the identity. More...
 
QGenericMatrix< M, N, T > transposed () const
 Returns this matrix, transposed about its diagonal. More...
 

Private Functions

 QGenericMatrix (int)
 

Properties

m [N][M]
 

Friends

template<int NN, int M1, int M2, typename TT >
QGenericMatrix< M1, M2, TT > operator* (const QGenericMatrix< NN, M2, TT > &m1, const QGenericMatrix< M1, NN, TT > &m2)
 
template<int NN, int MM, typename TT >
QGenericMatrix< NN, MM, TT > operator* (TT factor, const QGenericMatrix< NN, MM, TT > &matrix)
 
template<int NN, int MM, typename TT >
QGenericMatrix< NN, MM, TT > operator* (const QGenericMatrix< NN, MM, TT > &matrix, TT factor)
 
template<int NN, int MM, typename TT >
QGenericMatrix< NN, MM, TT > operator+ (const QGenericMatrix< NN, MM, TT > &m1, const QGenericMatrix< NN, MM, TT > &m2)
 
template<int NN, int MM, typename TT >
QGenericMatrix< NN, MM, TT > operator- (const QGenericMatrix< NN, MM, TT > &m1, const QGenericMatrix< NN, MM, TT > &m2)
 
template<int NN, int MM, typename TT >
QGenericMatrix< NN, MM, TT > operator- (const QGenericMatrix< NN, MM, TT > &matrix)
 
template<int NN, int MM, typename TT >
QGenericMatrix< NN, MM, TT > operator/ (const QGenericMatrix< NN, MM, TT > &matrix, TT divisor)
 
template<int NN, int MM, typename TT >
class QGenericMatrix
 Constructs a NxM identity matrix. More...
 

Related Functions

(Note that these are not member functions.)

QGenericMatrix< M1, M2, T > operator* (const QGenericMatrix< N, M2, T > &m1, const QGenericMatrix< M1, N, T > &m2)
 
QGenericMatrix< N, M, T > operator* (T factor, const QGenericMatrix< N, M, T > &matrix)
 
QGenericMatrix< N, M, T > operator* (const QGenericMatrix< N, M, T > &matrix, T factor)
 
QGenericMatrix< N, M, T > operator+ (const QGenericMatrix< N, M, T > &m1, const QGenericMatrix< N, M, T > &m2)
 Returns the sum of m1 and m2. More...
 
QGenericMatrix< N, M, T > operator- (const QGenericMatrix< N, M, T > &m1, const QGenericMatrix< N, M, T > &m2)
 Returns the difference of m1 and m2. More...
 
QGenericMatrix< N, M, T > operator- (const QGenericMatrix< N, M, T > &matrix)
 Returns the negation of matrix. More...
 
QGenericMatrix< N, M, T > operator/ (const QGenericMatrix< N, M, T > &matrix, T divisor)
 Returns the result of dividing all elements of matrix by divisor. More...
 
QDataStreamoperator<< (QDataStream &stream, const QGenericMatrix< N, M, T > &matrix)
 Writes the given matrix to the given stream and returns a reference to the stream. More...
 
QDataStreamoperator>> (QDataStream &stream, QGenericMatrix< N, M, T > &matrix)
 Reads a NxM matrix from the given stream into the given matrix and returns a reference to the stream. More...
 
 QMatrix2x2
 The QMatrix2x2 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 2 rows, and qreal as the element type. More...
 
 QMatrix2x3
 The QMatrix2x3 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 3 rows, and qreal as the element type. More...
 
 QMatrix2x4
 The QMatrix2x4 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 4 rows, and qreal as the element type. More...
 
 QMatrix3x2
 The QMatrix3x2 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 2 rows, and qreal as the element type. More...
 
 QMatrix3x3
 The QMatrix3x3 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 3 rows, and qreal as the element type. More...
 
 QMatrix3x4
 The QMatrix3x4 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 4 rows, and qreal as the element type. More...
 
 QMatrix4x2
 The QMatrix4x2 type defines a convenient instantiation of the QGenericMatrix template for 4 columns, 2 rows, and qreal as the element type. More...
 
 QMatrix4x3
 The QMatrix4x3 type defines a convenient instantiation of the QGenericMatrix template for 4 columns, 3 rows, and qreal as the element type. More...
 

Detailed Description

template<int N, int M, typename T>
class QGenericMatrix< N, M, T >

The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows.

Since
4.6

The QGenericMatrix template has three parameters:

N Number of columns.
M Number of rows.
T Element type that is visible to users of the class.
See also
QMatrix4x4

Definition at line 56 of file qgenericmatrix.h.

Constructors and Destructors

◆ QGenericMatrix() [1/4]

template<int N, int M, typename T >
Q_INLINE_TEMPLATE QGenericMatrix< N, M, T >::QGenericMatrix ( )

Definition at line 115 of file qgenericmatrix.h.

116 {
117  setToIdentity();
118 }
void setToIdentity()
Sets this matrix to the identity.

◆ QGenericMatrix() [2/4]

template<int N, int M, typename T >
Q_INLINE_TEMPLATE QGenericMatrix< N, M, T >::QGenericMatrix ( const QGenericMatrix< N, M, T > &  other)

Constructs a copy of other.

Definition at line 121 of file qgenericmatrix.h.

122 {
123  for (int col = 0; col < N; ++col)
124  for (int row = 0; row < M; ++row)
125  m[col][row] = other.m[col][row];
126 }
#define M(row, col)

◆ QGenericMatrix() [3/4]

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< N, M, T >::QGenericMatrix ( const T *  values)
explicit

Constructs a matrix from the given N * M floating-point values.

The contents of the array values is assumed to be in row-major order.

See also
copyDataTo()

Definition at line 129 of file qgenericmatrix.h.

130 {
131  for (int col = 0; col < N; ++col)
132  for (int row = 0; row < M; ++row)
133  m[col][row] = values[row * N + col];
134 }
#define M(row, col)
quint16 values[128]

◆ QGenericMatrix() [4/4]

template<int N, int M, typename T>
QGenericMatrix< N, M, T >::QGenericMatrix ( int  )
inlineprivate

Definition at line 106 of file qgenericmatrix.h.

106 {} // Construct without initializing identity matrix.

Functions

◆ constData()

template<int N, int M, typename T>
const T * QGenericMatrix< N, M, T >::constData ( ) const
inline

Returns a constant pointer to the raw data of this matrix.

See also
data()

Definition at line 84 of file qgenericmatrix.h.

Referenced by qGenericMatrixToMatrix4x4(), and QMatrix4x4::QMatrix4x4().

84 { return *m; }

◆ copyDataTo()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE void QGenericMatrix< N, M, T >::copyDataTo ( T *  values) const

Retrieves the N * M items in this matrix and copies them to values in row-major order.

Definition at line 332 of file qgenericmatrix.h.

333 {
334  for (int col = 0; col < N; ++col)
335  for (int row = 0; row < M; ++row)
336  values[row * N + col] = T(m[col][row]);
337 }
#define M(row, col)
quint16 values[128]

◆ data() [1/2]

template<int N, int M, typename T>
T * QGenericMatrix< N, M, T >::data ( )
inline

Returns a pointer to the raw data of this matrix.

See also
constData()

Definition at line 82 of file qgenericmatrix.h.

Referenced by QMatrix4x4::normalMatrix(), qGenericMatrixFromMatrix4x4(), and QMatrix4x4::toGenericMatrix().

82 { return *m; }

◆ data() [2/2]

template<int N, int M, typename T>
const T * QGenericMatrix< N, M, T >::data ( ) const
inline

Returns a constant pointer to the raw data of this matrix.

See also
constData()

Definition at line 83 of file qgenericmatrix.h.

83 { return *m; }

◆ fill()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE void QGenericMatrix< N, M, T >::fill ( value)

Fills all elements of this matrix with value.

Definition at line 181 of file qgenericmatrix.h.

182 {
183  for (int col = 0; col < N; ++col)
184  for (int row = 0; row < M; ++row)
185  m[col][row] = value;
186 }
#define M(row, col)

◆ isIdentity()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE bool QGenericMatrix< N, M, T >::isIdentity ( ) const

Returns true if this matrix is the identity; false otherwise.

See also
setToIdentity()

Definition at line 151 of file qgenericmatrix.h.

152 {
153  for (int col = 0; col < N; ++col) {
154  for (int row = 0; row < M; ++row) {
155  if (row == col) {
156  if (m[col][row] != 1.0f)
157  return false;
158  } else {
159  if (m[col][row] != 0.0f)
160  return false;
161  }
162  }
163  }
164  return true;
165 }
#define M(row, col)

◆ operator!=()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE bool QGenericMatrix< N, M, T >::operator!= ( const QGenericMatrix< N, M, T > &  other) const

Returns true if this matrix is not identical to other; false otherwise.

Definition at line 237 of file qgenericmatrix.h.

238 {
239  for (int row = 0; row < M; ++row)
240  for (int col = 0; col < N; ++col) {
241  if (m[col][row] != other.m[col][row])
242  return true;
243  }
244  return false;
245 }
#define M(row, col)

◆ operator()() [1/2]

template<int N, int M, typename T >
Q_INLINE_TEMPLATE const T & QGenericMatrix< N, M, T >::operator() ( int  row,
int  column 
) const

Returns a constant reference to the element at position (row, column) in this matrix.

Definition at line 137 of file qgenericmatrix.h.

138 {
139  Q_ASSERT(row >= 0 && row < M && column >= 0 && column < N);
140  return m[column][row];
141 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823

◆ operator()() [2/2]

template<int N, int M, typename T >
Q_INLINE_TEMPLATE T & QGenericMatrix< N, M, T >::operator() ( int  row,
int  column 
)

Returns a reference to the element at position (row, column) in this matrix so that the element can be assigned to.

Definition at line 144 of file qgenericmatrix.h.

145 {
146  Q_ASSERT(row >= 0 && row < M && column >= 0 && column < N);
147  return m[column][row];
148 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823

◆ operator*=()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< N, M, T > & QGenericMatrix< N, M, T >::operator*= ( factor)

Multiplies all elements of this matrix by factor.

Definition at line 217 of file qgenericmatrix.h.

218 {
219  for (int row = 0; row < M; ++row)
220  for (int col = 0; col < N; ++col)
221  m[col][row] *= factor;
222  return *this;
223 }
#define M(row, col)

◆ operator+=()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< N, M, T > & QGenericMatrix< N, M, T >::operator+= ( const QGenericMatrix< N, M, T > &  other)

Adds the contents of other to this matrix.

Definition at line 199 of file qgenericmatrix.h.

200 {
201  for (int row = 0; row < M; ++row)
202  for (int col = 0; col < N; ++col)
203  m[col][row] += other.m[col][row];
204  return *this;
205 }
#define M(row, col)

◆ operator-=()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< N, M, T > & QGenericMatrix< N, M, T >::operator-= ( const QGenericMatrix< N, M, T > &  other)

Subtracts the contents of other from this matrix.

Definition at line 208 of file qgenericmatrix.h.

209 {
210  for (int row = 0; row < M; ++row)
211  for (int col = 0; col < N; ++col)
212  m[col][row] -= other.m[col][row];
213  return *this;
214 }
#define M(row, col)

◆ operator/=()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< N, M, T > & QGenericMatrix< N, M, T >::operator/= ( divisor)

Divides all elements of this matrix by divisor.

Definition at line 248 of file qgenericmatrix.h.

249 {
250  for (int row = 0; row < M; ++row)
251  for (int col = 0; col < N; ++col)
252  m[col][row] /= divisor;
253  return *this;
254 }
#define M(row, col)

◆ operator==()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE bool QGenericMatrix< N, M, T >::operator== ( const QGenericMatrix< N, M, T > &  other) const

Returns true if this matrix is identical to other; false otherwise.

Definition at line 226 of file qgenericmatrix.h.

227 {
228  for (int row = 0; row < M; ++row)
229  for (int col = 0; col < N; ++col) {
230  if (m[col][row] != other.m[col][row])
231  return false;
232  }
233  return true;
234 }
#define M(row, col)

◆ setToIdentity()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE void QGenericMatrix< N, M, T >::setToIdentity ( )

Sets this matrix to the identity.

See also
isIdentity()

Definition at line 168 of file qgenericmatrix.h.

Referenced by QGenericMatrix< N, M, T >::QGenericMatrix().

169 {
170  for (int col = 0; col < N; ++col) {
171  for (int row = 0; row < M; ++row) {
172  if (row == col)
173  m[col][row] = 1.0f;
174  else
175  m[col][row] = 0.0f;
176  }
177  }
178 }
#define M(row, col)

◆ transposed()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< M, N, T > QGenericMatrix< N, M, T >::transposed ( ) const

Returns this matrix, transposed about its diagonal.

Definition at line 189 of file qgenericmatrix.h.

190 {
191  QGenericMatrix<M, N, T> result(1);
192  for (int row = 0; row < M; ++row)
193  for (int col = 0; col < N; ++col)
194  result.m[row][col] = m[col][row];
195  return result;
196 }
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N colum...
#define M(row, col)

Friends and Related Functions

◆ operator* [1/6]

template<int N, int M, typename T>
template<int NN, int M1, int M2, typename TT >
QGenericMatrix<M1, M2, TT> operator* ( const QGenericMatrix< NN, M2, TT > &  m1,
const QGenericMatrix< M1, NN, TT > &  m2 
)
friend

◆ operator* [2/6]

template<int N, int M, typename T>
template<int NN, int MM, typename TT >
QGenericMatrix<NN, MM, TT> operator* ( TT  factor,
const QGenericMatrix< NN, MM, TT > &  matrix 
)
friend

◆ operator* [3/6]

template<int N, int M, typename T>
template<int NN, int MM, typename TT >
QGenericMatrix<NN, MM, TT> operator* ( const QGenericMatrix< NN, MM, TT > &  matrix,
TT  factor 
)
friend

◆ operator*() [4/6]

template<int N, int M, typename T>
QGenericMatrix< M1, M2, T > operator* ( const QGenericMatrix< N, M2, T > &  m1,
const QGenericMatrix< M1, N, T > &  m2 
)
related

Returns the product of the NxM2 matrix m1 and the M1xN matrix m2 to produce a M1xM2 matrix result.

Definition at line 277 of file qgenericmatrix.h.

278 {
279  QGenericMatrix<M1, M2, T> result(1);
280  for (int row = 0; row < M2; ++row) {
281  for (int col = 0; col < M1; ++col) {
282  T sum(0.0f);
283  for (int j = 0; j < N; ++j)
284  sum += m1.m[j][row] * m2.m[col][j];
285  result.m[col][row] = sum;
286  }
287  }
288  return result;
289 }
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N colum...

◆ operator*() [5/6]

template<int N, int M, typename T>
QGenericMatrix< N, M, T > operator* ( factor,
const QGenericMatrix< N, M, T > &  matrix 
)
related

Returns the result of multiplying all elements of matrix by factor.

Definition at line 302 of file qgenericmatrix.h.

303 {
304  QGenericMatrix<N, M, T> result(1);
305  for (int row = 0; row < M; ++row)
306  for (int col = 0; col < N; ++col)
307  result.m[col][row] = matrix.m[col][row] * factor;
308  return result;
309 }
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N colum...
#define M(row, col)

◆ operator*() [6/6]

template<int N, int M, typename T>
QGenericMatrix< N, M, T > operator* ( const QGenericMatrix< N, M, T > &  matrix,
factor 
)
related

Returns the result of multiplying all elements of matrix by factor.

Definition at line 312 of file qgenericmatrix.h.

313 {
314  QGenericMatrix<N, M, T> result(1);
315  for (int row = 0; row < M; ++row)
316  for (int col = 0; col < N; ++col)
317  result.m[col][row] = matrix.m[col][row] * factor;
318  return result;
319 }
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N colum...
#define M(row, col)

◆ operator+ [1/2]

template<int N, int M, typename T>
template<int NN, int MM, typename TT >
QGenericMatrix<NN, MM, TT> operator+ ( const QGenericMatrix< NN, MM, TT > &  m1,
const QGenericMatrix< NN, MM, TT > &  m2 
)
friend

◆ operator+() [2/2]

template<int N, int M, typename T>
QGenericMatrix< N, M, T > operator+ ( const QGenericMatrix< N, M, T > &  m1,
const QGenericMatrix< N, M, T > &  m2 
)
related

Returns the sum of m1 and m2.

Definition at line 257 of file qgenericmatrix.h.

258 {
259  QGenericMatrix<N, M, T> result(1);
260  for (int row = 0; row < M; ++row)
261  for (int col = 0; col < N; ++col)
262  result.m[col][row] = m1.m[col][row] + m2.m[col][row];
263  return result;
264 }
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N colum...
#define M(row, col)

◆ operator- [1/4]

template<int N, int M, typename T>
template<int NN, int MM, typename TT >
QGenericMatrix<NN, MM, TT> operator- ( const QGenericMatrix< NN, MM, TT > &  m1,
const QGenericMatrix< NN, MM, TT > &  m2 
)
friend

◆ operator- [2/4]

template<int N, int M, typename T>
template<int NN, int MM, typename TT >
QGenericMatrix<NN, MM, TT> operator- ( const QGenericMatrix< NN, MM, TT > &  matrix)
friend

◆ operator-() [3/4]

template<int N, int M, typename T>
QGenericMatrix< N, M, T > operator- ( const QGenericMatrix< N, M, T > &  m1,
const QGenericMatrix< N, M, T > &  m2 
)
related

Returns the difference of m1 and m2.

Definition at line 267 of file qgenericmatrix.h.

268 {
269  QGenericMatrix<N, M, T> result(1);
270  for (int row = 0; row < M; ++row)
271  for (int col = 0; col < N; ++col)
272  result.m[col][row] = m1.m[col][row] - m2.m[col][row];
273  return result;
274 }
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N colum...
#define M(row, col)

◆ operator-() [4/4]

template<int N, int M, typename T>
QGenericMatrix< N, M, T > operator- ( const QGenericMatrix< N, M, T > &  matrix)
related

Returns the negation of matrix.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 292 of file qgenericmatrix.h.

293 {
294  QGenericMatrix<N, M, T> result(1);
295  for (int row = 0; row < M; ++row)
296  for (int col = 0; col < N; ++col)
297  result.m[col][row] = -matrix.m[col][row];
298  return result;
299 }
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N colum...
#define M(row, col)

◆ operator/ [1/2]

template<int N, int M, typename T>
template<int NN, int MM, typename TT >
QGenericMatrix<NN, MM, TT> operator/ ( const QGenericMatrix< NN, MM, TT > &  matrix,
TT  divisor 
)
friend

◆ operator/() [2/2]

template<int N, int M, typename T>
QGenericMatrix< N, M, T > operator/ ( const QGenericMatrix< N, M, T > &  matrix,
divisor 
)
related

Returns the result of dividing all elements of matrix by divisor.

Definition at line 322 of file qgenericmatrix.h.

323 {
324  QGenericMatrix<N, M, T> result(1);
325  for (int row = 0; row < M; ++row)
326  for (int col = 0; col < N; ++col)
327  result.m[col][row] = matrix.m[col][row] / divisor;
328  return result;
329 }
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N colum...
#define M(row, col)

◆ operator<<()

template<int N, int M, typename T>
QDataStream & operator<< ( QDataStream stream,
const QGenericMatrix< N, M, T > &  matrix 
)
related

Writes the given matrix to the given stream and returns a reference to the stream.

See also
{Serializing Qt Data Types}

Definition at line 371 of file qgenericmatrix.h.

372 {
373  for (int row = 0; row < M; ++row)
374  for (int col = 0; col < N; ++col)
375  stream << double(matrix(row, col));
376  return stream;
377 }
#define M(row, col)
static FILE * stream

◆ operator>>()

template<int N, int M, typename T>
QDataStream & operator>> ( QDataStream stream,
QGenericMatrix< N, M, T > &  matrix 
)
related

Reads a NxM matrix from the given stream into the given matrix and returns a reference to the stream.

See also
{Serializing Qt Data Types}

Definition at line 380 of file qgenericmatrix.h.

381 {
382  double x;
383  for (int row = 0; row < M; ++row) {
384  for (int col = 0; col < N; ++col) {
385  stream >> x;
386  matrix(row, col) = T(x);
387  }
388  }
389  return stream;
390 }
#define M(row, col)
static FILE * stream

◆ QGenericMatrix

template<int N, int M, typename T>
template<int NN, int MM, typename TT >
QGenericMatrix< N, M, T >::QGenericMatrix
friend

Constructs a NxM identity matrix.

Definition at line 110 of file qgenericmatrix.h.

◆ QMatrix2x2()

template<int N, int M, typename T>
QMatrix2x2
related

The QMatrix2x2 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 2 rows, and qreal as the element type.

◆ QMatrix2x3()

template<int N, int M, typename T>
QMatrix2x3
related

The QMatrix2x3 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 3 rows, and qreal as the element type.

◆ QMatrix2x4()

template<int N, int M, typename T>
QMatrix2x4
related

The QMatrix2x4 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 4 rows, and qreal as the element type.

◆ QMatrix3x2()

template<int N, int M, typename T>
QMatrix3x2
related

The QMatrix3x2 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 2 rows, and qreal as the element type.

◆ QMatrix3x3()

template<int N, int M, typename T>
QMatrix3x3
related

The QMatrix3x3 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 3 rows, and qreal as the element type.

◆ QMatrix3x4()

template<int N, int M, typename T>
QMatrix3x4
related

The QMatrix3x4 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 4 rows, and qreal as the element type.

◆ QMatrix4x2()

template<int N, int M, typename T>
QMatrix4x2
related

The QMatrix4x2 type defines a convenient instantiation of the QGenericMatrix template for 4 columns, 2 rows, and qreal as the element type.

◆ QMatrix4x3()

template<int N, int M, typename T>
QMatrix4x3
related

The QMatrix4x3 type defines a convenient instantiation of the QGenericMatrix template for 4 columns, 3 rows, and qreal as the element type.

Properties

◆ m

template<int N, int M, typename T>
T QGenericMatrix< N, M, T >::m[N][M]
private

The documentation for this class was generated from the following files: