HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Matrix22< T > Class Template Reference

#include <ImathMatrix.h>

Public Types

typedef T BaseType
 
typedef Vec2< TBaseVecType
 The base vector type. More...
 

Public Member Functions

IMATH_HOSTDEVICE Toperator[] (int i) IMATH_NOEXCEPT
 Row access. More...
 
IMATH_HOSTDEVICE const Toperator[] (int i) const IMATH_NOEXCEPT
 Row access. More...
 
template<class S >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 Matrix22< T > & 
setValue (const Matrix22< S > &v) IMATH_NOEXCEPT
 
template<class S >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 Matrix22< T > & 
setTheMatrix (const Matrix22< S > &v) IMATH_NOEXCEPT
 
template<class S >
IMATH_HOSTDEVICE const
Matrix22< T > & 
setRotation (S r) IMATH_NOEXCEPT
 
template<class S >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22< T > & 
rotate (S r) IMATH_NOEXCEPT
 
template<class S >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22< T > & 
setScale (const Vec2< S > &s) IMATH_NOEXCEPT
 
template<class S >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22< T > & 
scale (const Vec2< S > &s) IMATH_NOEXCEPT
 
Constructors and Assignment
IMATH_HOSTDEVICE Matrix22 (Uninitialized) IMATH_NOEXCEPT
 Uninitialized. More...
 
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22 () IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22 (T a) IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22 (const T a[2][2]) IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22 (T a, T b, T c, T d) IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22 (const Matrix22 &v) IMATH_NOEXCEPT
 Copy constructor. More...
 
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22 (const Matrix22< S > &v) IMATH_NOEXCEPT
 Construct from Matrix22 of another base type. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
operator= (const Matrix22 &v) IMATH_NOEXCEPT
 Assignment. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
operator= (T a) IMATH_NOEXCEPT
 Assignment from scalar. More...
 
 ~Matrix22 () IMATH_NOEXCEPT=default
 Destructor. More...
 
Interoperability with other matrix types
template<typename M , IMATH_ENABLE_IF(has_double_subscript< M, T, 2, 2 >::value) >
IMATH_HOSTDEVICE Matrix22 (const M &m)
 
template<typename M , IMATH_ENABLE_IF(has_double_subscript< M, T, 2, 2 >::value) >
IMATH_HOSTDEVICE const Matrix22operator= (const M &m)
 
Compatibility with Sb
IMATH_HOSTDEVICE TgetValue () IMATH_NOEXCEPT
 Return a raw pointer to the array of values. More...
 
IMATH_HOSTDEVICE const TgetValue () const IMATH_NOEXCEPT
 Return a raw pointer to the array of values. More...
 
template<class S >
IMATH_HOSTDEVICE void getValue (Matrix22< S > &v) const IMATH_NOEXCEPT
 Return the value in v More...
 
template<class S >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 Matrix22
setValue (const Matrix22< S > &v) IMATH_NOEXCEPT
 Set the value. More...
 
template<class S >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 Matrix22
setTheMatrix (const Matrix22< S > &v) IMATH_NOEXCEPT
 Set the value. More...
 
Arithmetic and Comparison
IMATH_HOSTDEVICE constexpr bool operator== (const Matrix22 &v) const IMATH_NOEXCEPT
 Equality. More...
 
IMATH_HOSTDEVICE constexpr bool operator!= (const Matrix22 &v) const IMATH_NOEXCEPT
 Inequality. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 bool 
equalWithAbsError (const Matrix22< T > &v, T e) const IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 bool 
equalWithRelError (const Matrix22< T > &v, T e) const IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
operator+= (const Matrix22 &v) IMATH_NOEXCEPT
 Component-wise addition. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
operator+= (T a) IMATH_NOEXCEPT
 Component-wise addition. More...
 
IMATH_HOSTDEVICE constexpr Matrix22 operator+ (const Matrix22 &v) const IMATH_NOEXCEPT
 Component-wise addition. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
operator-= (const Matrix22 &v) IMATH_NOEXCEPT
 Component-wise subtraction. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
operator-= (T a) IMATH_NOEXCEPT
 Component-wise subtraction. More...
 
IMATH_HOSTDEVICE constexpr Matrix22 operator- (const Matrix22 &v) const IMATH_NOEXCEPT
 Component-wise subtraction. More...
 
IMATH_HOSTDEVICE constexpr Matrix22 operator- () const IMATH_NOEXCEPT
 Component-wise multiplication by -1. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
negate () IMATH_NOEXCEPT
 Component-wise multiplication by -1. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
operator*= (T a) IMATH_NOEXCEPT
 Component-wise multiplication. More...
 
IMATH_HOSTDEVICE constexpr Matrix22 operator* (T a) const IMATH_NOEXCEPT
 Component-wise multiplication. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
operator/= (T a) IMATH_NOEXCEPT
 Component-wise division. More...
 
IMATH_HOSTDEVICE constexpr Matrix22 operator/ (T a) const IMATH_NOEXCEPT
 Component-wise division. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
operator*= (const Matrix22 &v) IMATH_NOEXCEPT
 Matrix-matrix multiplication. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 Matrix22 
operator* (const Matrix22 &v) const IMATH_NOEXCEPT
 Matrix-matrix multiplication. More...
 
template<class S >
IMATH_HOSTDEVICE void multDirMatrix (const Vec2< S > &src, Vec2< S > &dst) const IMATH_NOEXCEPT
 
Maniplation
IMATH_HOSTDEVICE void makeIdentity () IMATH_NOEXCEPT
 Set to the identity. More...
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
transpose () IMATH_NOEXCEPT
 Transpose. More...
 
IMATH_HOSTDEVICE constexpr Matrix22 transposed () const IMATH_NOEXCEPT
 Return the transpose. More...
 
IMATH_CONSTEXPR14 const Matrix22invert (bool singExc)
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
invert () IMATH_NOEXCEPT
 
IMATH_CONSTEXPR14 Matrix22< Tinverse (bool singExc) const
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 Matrix22< T
inverse () const IMATH_NOEXCEPT
 Return the inverse, leaving this unmodified. More...
 
IMATH_HOSTDEVICE constexpr T determinant () const IMATH_NOEXCEPT
 Determinant. More...
 
IMATH_HOSTDEVICE constexpr T trace () const IMATH_NOEXCEPT
 Trace. More...
 
template<class S >
IMATH_HOSTDEVICE const Matrix22setRotation (S r) IMATH_NOEXCEPT
 
template<class S >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
rotate (S r) IMATH_NOEXCEPT
 
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
setScale (T s) IMATH_NOEXCEPT
 
template<class S >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
setScale (const Vec2< S > &s) IMATH_NOEXCEPT
 
template<class S >
IMATH_HOSTDEVICE
IMATH_CONSTEXPR14 const
Matrix22
scale (const Vec2< S > &s) IMATH_NOEXCEPT
 

Static Public Member Functions

IMATH_HOSTDEVICE static
constexpr unsigned int 
dimensions () IMATH_NOEXCEPT
 Return the number of the row and column dimensions, i.e. 2. More...
 
Numeric Limits
IMATH_HOSTDEVICE static constexpr T baseTypeLowest () IMATH_NOEXCEPT
 Largest possible negative value. More...
 
IMATH_HOSTDEVICE static constexpr T baseTypeMax () IMATH_NOEXCEPT
 Largest possible positive value. More...
 
IMATH_HOSTDEVICE static constexpr T baseTypeSmallest () IMATH_NOEXCEPT
 Smallest possible positive value. More...
 
IMATH_HOSTDEVICE static constexpr T baseTypeEpsilon () IMATH_NOEXCEPT
 Smallest possible e for which 1+e != 1. More...
 

Public Attributes

Direct access to elements
T x [2][2]
 Matrix elements. More...
 

Detailed Description

template<class T>
class Matrix22< T >

2x2 transformation matrix

Definition at line 45 of file ImathMatrix.h.

Member Typedef Documentation

template<class T>
typedef T Matrix22< T >::BaseType

The base type: In templates that accept a parameter V, you can refer to T as V::BaseType

Definition at line 363 of file ImathMatrix.h.

template<class T>
typedef Vec2<T> Matrix22< T >::BaseVecType

The base vector type.

Definition at line 366 of file ImathMatrix.h.

Constructor & Destructor Documentation

template<class T>
IMATH_HOSTDEVICE Matrix22< T >::Matrix22 ( Uninitialized  )
inline

Uninitialized.

Definition at line 66 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22< T >::Matrix22 ( )
inline

Default constructor: initialize to identity

1 0
0 1  

Definition at line 1426 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22< T >::Matrix22 ( T  a)
inline

Initialize to scalar constant:

a a
a a  

Definition at line 1436 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22< T >::Matrix22 ( const T  a[2][2])
inline

Construct from 2x2 array:

a[0][0] a[0][1]
a[1][0] a[1][1]  

Definition at line 1445 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22< T >::Matrix22 ( T  a,
T  b,
T  c,
T  d 
)
inline

Construct from given scalar values:

a b
c d  

Definition at line 1459 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22< T >::Matrix22 ( const Matrix22< T > &  v)
inline

Copy constructor.

Definition at line 1469 of file ImathMatrix.h.

template<class T >
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22< T >::Matrix22 ( const Matrix22< S > &  v)
inlineexplicit

Construct from Matrix22 of another base type.

Definition at line 1484 of file ImathMatrix.h.

template<class T>
Matrix22< T >::~Matrix22 ( )
default

Destructor.

template<class T>
template<typename M , IMATH_ENABLE_IF(has_double_subscript< M, T, 2, 2 >::value) >
IMATH_HOSTDEVICE Matrix22< T >::Matrix22 ( const M &  m)
inlineexplicit

Definition at line 132 of file ImathMatrix.h.

Member Function Documentation

template<class T>
IMATH_HOSTDEVICE static constexpr T Matrix22< T >::baseTypeEpsilon ( )
inlinestatic

Smallest possible e for which 1+e != 1.

Definition at line 348 of file ImathMatrix.h.

template<class T>
IMATH_HOSTDEVICE static constexpr T Matrix22< T >::baseTypeLowest ( )
inlinestatic

Largest possible negative value.

Definition at line 330 of file ImathMatrix.h.

template<class T>
IMATH_HOSTDEVICE static constexpr T Matrix22< T >::baseTypeMax ( )
inlinestatic

Largest possible positive value.

Definition at line 336 of file ImathMatrix.h.

template<class T>
IMATH_HOSTDEVICE static constexpr T Matrix22< T >::baseTypeSmallest ( )
inlinestatic

Smallest possible positive value.

Definition at line 342 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE constexpr T Matrix22< T >::determinant ( ) const
inline

Determinant.

Definition at line 1918 of file ImathMatrix.h.

template<class T>
IMATH_HOSTDEVICE static constexpr unsigned int Matrix22< T >::dimensions ( )
inlinestatic

Return the number of the row and column dimensions, i.e. 2.

Definition at line 356 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 bool Matrix22< T >::equalWithAbsError ( const Matrix22< T > &  v,
T  e 
) const
inline

Compare two matrices and test if they are "approximately equal":

Returns
True if the coefficients of this and m are the same with an absolute error of no more than e, i.e., for all i, j:
abs (this[i][j] - m[i][j]) <= e  

Definition at line 1596 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 bool Matrix22< T >::equalWithRelError ( const Matrix22< T > &  v,
T  e 
) const
inline

Compare two matrices and test if they are "approximately equal":

Returns
True if the coefficients of this and m are the same with a relative error of no more than e, i.e., for all i, j:
abs (this[i] - v[i][j]) <= e * abs (this[i][j])  

Definition at line 1609 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE T * Matrix22< T >::getValue ( )
inline

Return a raw pointer to the array of values.

Definition at line 1521 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE const T * Matrix22< T >::getValue ( ) const
inline

Return a raw pointer to the array of values.

Definition at line 1528 of file ImathMatrix.h.

template<class T >
template<class S >
IMATH_HOSTDEVICE void Matrix22< T >::getValue ( Matrix22< S > &  v) const
inline

Return the value in v

Definition at line 1536 of file ImathMatrix.h.

template<class T >
IMATH_CONSTEXPR14 Matrix22< T > Matrix22< T >::inverse ( bool  singExc) const
inline

Return the inverse, leaving this unmodified.

Parameters
singExcIf true, throw an exception if the matrix cannot be inverted.

Definition at line 1833 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22< T > Matrix22< T >::inverse ( ) const
inline

Return the inverse, leaving this unmodified.

Definition at line 1877 of file ImathMatrix.h.

template<class T >
IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::invert ( bool  singExc)
inline

Invert in place

Parameters
singExcIf true, throw an exception if the matrix cannot be inverted.
Returns
const reference to this

Definition at line 1817 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::invert ( )
inline

Invert in place

Returns
const reference to this

Definition at line 1825 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE void Matrix22< T >::makeIdentity ( )
inline

Set to the identity.

Definition at line 1570 of file ImathMatrix.h.

template<class T >
template<class S >
IMATH_HOSTDEVICE void Matrix22< T >::multDirMatrix ( const Vec2< S > &  src,
Vec2< S > &  dst 
) const
inline

Vector * matrix multiplication

Parameters
[in]srcInput vector
[out]dsttransformed vector

Definition at line 1768 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::negate ( )
inline

Component-wise multiplication by -1.

Definition at line 1699 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE constexpr bool Matrix22< T >::operator!= ( const Matrix22< T > &  v) const
inline

Inequality.

Definition at line 1588 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE constexpr Matrix22< T > Matrix22< T >::operator* ( T  a) const
inline

Component-wise multiplication.

Definition at line 1723 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22< T > Matrix22< T >::operator* ( const Matrix22< T > &  v) const
inline

Matrix-matrix multiplication.

Definition at line 1753 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::operator*= ( T  a)
inline

Component-wise multiplication.

Definition at line 1711 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::operator*= ( const Matrix22< T > &  v)
inline

Matrix-matrix multiplication.

Definition at line 1738 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE constexpr Matrix22< T > Matrix22< T >::operator+ ( const Matrix22< T > &  v) const
inline

Component-wise addition.

Definition at line 1646 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::operator+= ( const Matrix22< T > &  v)
inline

Component-wise addition.

Definition at line 1622 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::operator+= ( T  a)
inline

Component-wise addition.

Definition at line 1634 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE constexpr Matrix22< T > Matrix22< T >::operator- ( const Matrix22< T > &  v) const
inline

Component-wise subtraction.

Definition at line 1681 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE constexpr Matrix22< T > Matrix22< T >::operator- ( ) const
inline

Component-wise multiplication by -1.

Definition at line 1692 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::operator-= ( const Matrix22< T > &  v)
inline

Component-wise subtraction.

Definition at line 1657 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::operator-= ( T  a)
inline

Component-wise subtraction.

Definition at line 1669 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE constexpr Matrix22< T > Matrix22< T >::operator/ ( T  a) const
inline

Component-wise division.

Definition at line 1794 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::operator/= ( T  a)
inline

Component-wise division.

Definition at line 1782 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::operator= ( const Matrix22< T > &  v)
inline

Assignment.

Definition at line 1495 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::operator= ( T  a)
inline

Assignment from scalar.

Definition at line 1510 of file ImathMatrix.h.

template<class T>
template<typename M , IMATH_ENABLE_IF(has_double_subscript< M, T, 2, 2 >::value) >
IMATH_HOSTDEVICE const Matrix22& Matrix22< T >::operator= ( const M &  m)
inline

Definition at line 139 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE constexpr bool Matrix22< T >::operator== ( const Matrix22< T > &  v) const
inline

Equality.

Definition at line 1580 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE T * Matrix22< T >::operator[] ( int  i)
inline

Row access.

Definition at line 1412 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE const T * Matrix22< T >::operator[] ( int  i) const
inline

Row access.

Definition at line 1419 of file ImathMatrix.h.

template<class T>
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22& Matrix22< T >::rotate ( S  r)

Rotate the given matrix by r (in radians)

Returns
const referenced to this
template<class T>
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22<T>& Matrix22< T >::rotate ( S  r)
inline

Definition at line 1952 of file ImathMatrix.h.

template<class T>
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22& Matrix22< T >::scale ( const Vec2< S > &  s)
Returns
const referenced to this
template<class T>
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22<T>& Matrix22< T >::scale ( const Vec2< S > &  s)
inline

Definition at line 1998 of file ImathMatrix.h.

template<class T>
template<class S >
IMATH_HOSTDEVICE const Matrix22& Matrix22< T >::setRotation ( S  r)

Set matrix to rotation by r (in radians)

Returns
const referenced to this
template<class T>
template<class S >
IMATH_HOSTDEVICE const Matrix22<T>& Matrix22< T >::setRotation ( S  r)
inline

Definition at line 1933 of file ImathMatrix.h.

template<class T >
IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::setScale ( T  s)
inline

Set matrix to scale by given uniform factor

Returns
const referenced to this

Definition at line 1960 of file ImathMatrix.h.

template<class T>
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22& Matrix22< T >::setScale ( const Vec2< S > &  s)

Set matrix to scale by given vector

Returns
const referenced to this
template<class T>
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22<T>& Matrix22< T >::setScale ( const Vec2< S > &  s)
inline

Definition at line 1979 of file ImathMatrix.h.

template<class T>
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22& Matrix22< T >::setTheMatrix ( const Matrix22< S > &  v)

Set the value.

template<class T>
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22<T>& Matrix22< T >::setTheMatrix ( const Matrix22< S > &  v)
inline

Definition at line 1559 of file ImathMatrix.h.

template<class T>
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22& Matrix22< T >::setValue ( const Matrix22< S > &  v)

Set the value.

template<class T>
template<class S >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Matrix22<T>& Matrix22< T >::setValue ( const Matrix22< S > &  v)
inline

Definition at line 1547 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE constexpr T Matrix22< T >::trace ( ) const
inline

Trace.

Definition at line 1925 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE IMATH_CONSTEXPR14 const Matrix22< T > & Matrix22< T >::transpose ( )
inline

Transpose.

Definition at line 1801 of file ImathMatrix.h.

template<class T >
IMATH_HOSTDEVICE constexpr Matrix22< T > Matrix22< T >::transposed ( ) const
inline

Return the transpose.

Definition at line 1810 of file ImathMatrix.h.

Member Data Documentation

template<class T>
T Matrix22< T >::x[2][2]

Matrix elements.

Definition at line 52 of file ImathMatrix.h.


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