cheshirekow  v0.1.0
fiber::_CrossMatrix< Scalar, Exp > Class Template Reference

cross-product matrix of a vector More...

#include <fiber/cross_matrix.h>

Inheritance diagram for fiber::_CrossMatrix< Scalar, Exp >:
fiber::_RValue< Scalar, _CrossMatrix< Scalar, Exp > >

Public Types

enum  { ROWS_ = 3, COLS_ = 3, SIZE_ = 9 }
 

Public Member Functions

 _CrossMatrix (Exp const &A)
 
Size cols () const
 
Scalar operator() (Size i, Size j) const
 return the evaluated (j,i)'th element of a matrix expression More...
 
Scalar operator[] (Size i) const
 return the evaluated i'th element of a vector expression More...
 
Size rows () const
 
Size size () const
 
- Public Member Functions inherited from fiber::_RValue< Scalar, _CrossMatrix< Scalar, Exp > >
Size cols () const
 
Scalar operator() (Size i, Size j) const
 
Scalar operator[] (Size i) const
 
Size rows () const
 
Size size () const
 

Private Attributes

Exp const & v_
 wrapped expression More...
 

Detailed Description

template<typename Scalar, class Exp>
class fiber::_CrossMatrix< Scalar, Exp >

cross-product matrix of a vector

Given a vector v, the CrossMatrix of v is the skew symmetric 3x3 matrix given by: | 0 -v[2] v[1] | | v[2] 0 -v[0] | | -v[1] v[0] 0 |

Note: relatively private class, construct with the CrossMatrix function.

Definition at line 58 of file cross_matrix.h.

Member Enumeration Documentation

template<typename Scalar , class Exp >
anonymous enum
Enumerator
ROWS_ 
COLS_ 
SIZE_ 

Definition at line 63 of file cross_matrix.h.

Constructor & Destructor Documentation

template<typename Scalar , class Exp >
fiber::_CrossMatrix< Scalar, Exp >::_CrossMatrix ( Exp const &  A)
inline

Definition at line 69 of file cross_matrix.h.

Member Function Documentation

template<typename Scalar , class Exp >
Size fiber::_CrossMatrix< Scalar, Exp >::cols ( ) const
inline

Definition at line 77 of file cross_matrix.h.

template<typename Scalar , class Exp >
Scalar fiber::_CrossMatrix< Scalar, Exp >::operator() ( Size  i,
Size  j 
) const
inline

return the evaluated (j,i)'th element of a matrix expression

Definition at line 85 of file cross_matrix.h.

template<typename Scalar , class Exp >
Scalar fiber::_CrossMatrix< Scalar, Exp >::operator[] ( Size  i) const
inline

return the evaluated i'th element of a vector expression

Definition at line 80 of file cross_matrix.h.

template<typename Scalar , class Exp >
Size fiber::_CrossMatrix< Scalar, Exp >::rows ( ) const
inline

Definition at line 76 of file cross_matrix.h.

template<typename Scalar , class Exp >
Size fiber::_CrossMatrix< Scalar, Exp >::size ( ) const
inline

Definition at line 75 of file cross_matrix.h.

Member Data Documentation

template<typename Scalar , class Exp >
Exp const& fiber::_CrossMatrix< Scalar, Exp >::v_
private

wrapped expression

Definition at line 60 of file cross_matrix.h.


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