cml::et::UnaryMatrixOp< ExprT, OpT > Class Template Reference

A unary matrix expression operating on matrix elements as a list. More...

#include <matrix_expr.h>

Collaboration diagram for cml::et::UnaryMatrixOp< ExprT, OpT >:

Collaboration graph
[legend]

List of all members.

Public Types

enum  { array_rows = ExprT::array_rows, array_cols = ExprT::array_cols }
 Record result size as an enum (if applicable). More...
typedef cml::et::not_assignable_tag assignable_tag
typedef unary_expression expr_ary
typedef expr_type expr_const_reference
typedef
expr_traits::const_reference 
expr_reference
typedef ExprTraits< ExprT > expr_traits
typedef UnaryMatrixOp< ExprT, OpT > expr_type
typedef matrix_result_tag result_tag
typedef expr_traits::result_type result_type
typedef ExprT::size_tag size_tag
typedef result_type::temporary_type temporary_type
typedef OpT::value_type value_type

Public Member Functions

size_t cols () const
 Return number of columns in the expression (same as argument).
value_type operator() (size_t i, size_t j) const
 Compute value at index i,j of the result matrix.
size_t rows () const
 Return number of rows in the expression (same as argument).
matrix_size size () const
 Return the expression size as a pair.
 UnaryMatrixOp (const expr_type &e)
 Copy constructor.
 UnaryMatrixOp (expr_reference expr)
 Construct from the subexpression.

Protected Attributes

expr_reference m_expr

Private Member Functions

expr_typeoperator= (const expr_type &)


Detailed Description

template<class ExprT, class OpT>
class cml::et::UnaryMatrixOp< ExprT, OpT >

A unary matrix expression operating on matrix elements as a list.

The operator must take exactly one argument.

Definition at line 171 of file matrix_expr.h.


Member Typedef Documentation

template<class ExprT , class OpT >
typedef cml::et::not_assignable_tag cml::et::UnaryMatrixOp< ExprT, OpT >::assignable_tag

Definition at line 200 of file matrix_expr.h.

template<class ExprT , class OpT >
typedef unary_expression cml::et::UnaryMatrixOp< ExprT, OpT >::expr_ary

Definition at line 178 of file matrix_expr.h.

template<class ExprT , class OpT >
typedef expr_type cml::et::UnaryMatrixOp< ExprT, OpT >::expr_const_reference

Definition at line 181 of file matrix_expr.h.

template<class ExprT , class OpT >
typedef expr_traits::const_reference cml::et::UnaryMatrixOp< ExprT, OpT >::expr_reference

Definition at line 191 of file matrix_expr.h.

template<class ExprT , class OpT >
typedef ExprTraits<ExprT> cml::et::UnaryMatrixOp< ExprT, OpT >::expr_traits

Definition at line 188 of file matrix_expr.h.

template<class ExprT , class OpT >
typedef UnaryMatrixOp<ExprT,OpT> cml::et::UnaryMatrixOp< ExprT, OpT >::expr_type

Definition at line 175 of file matrix_expr.h.

template<class ExprT , class OpT >
typedef matrix_result_tag cml::et::UnaryMatrixOp< ExprT, OpT >::result_tag

Definition at line 184 of file matrix_expr.h.

template<class ExprT , class OpT >
typedef expr_traits::result_type cml::et::UnaryMatrixOp< ExprT, OpT >::result_type

Definition at line 194 of file matrix_expr.h.

template<class ExprT , class OpT >
typedef ExprT::size_tag cml::et::UnaryMatrixOp< ExprT, OpT >::size_tag

Definition at line 185 of file matrix_expr.h.

template<class ExprT , class OpT >
typedef result_type::temporary_type cml::et::UnaryMatrixOp< ExprT, OpT >::temporary_type

Definition at line 197 of file matrix_expr.h.

template<class ExprT , class OpT >
typedef OpT::value_type cml::et::UnaryMatrixOp< ExprT, OpT >::value_type

Definition at line 183 of file matrix_expr.h.


Member Enumeration Documentation

template<class ExprT , class OpT >
anonymous enum

Record result size as an enum (if applicable).

Enumerator:
array_rows 
array_cols 

Definition at line 206 of file matrix_expr.h.


Constructor & Destructor Documentation

template<class ExprT , class OpT >
cml::et::UnaryMatrixOp< ExprT, OpT >::UnaryMatrixOp ( expr_reference  expr  )  [inline, explicit]

Construct from the subexpression.

Definition at line 239 of file matrix_expr.h.

template<class ExprT , class OpT >
cml::et::UnaryMatrixOp< ExprT, OpT >::UnaryMatrixOp ( const expr_type e  )  [inline]

Copy constructor.

Definition at line 242 of file matrix_expr.h.


Member Function Documentation

template<class ExprT , class OpT >
size_t cml::et::UnaryMatrixOp< ExprT, OpT >::cols (  )  const [inline]

Return number of columns in the expression (same as argument).

Definition at line 222 of file matrix_expr.h.

References cml::et::UnaryMatrixOp< ExprT, OpT >::m_expr.

Referenced by cml::et::ExprTraits< UnaryMatrixOp< ExprT, OpT > >::cols(), and cml::et::UnaryMatrixOp< ExprT, OpT >::size().

Here is the caller graph for this function:

template<class ExprT , class OpT >
value_type cml::et::UnaryMatrixOp< ExprT, OpT >::operator() ( size_t  i,
size_t  j 
) const [inline]

Compute value at index i,j of the result matrix.

Definition at line 227 of file matrix_expr.h.

References cml::et::UnaryMatrixOp< ExprT, OpT >::m_expr.

template<class ExprT , class OpT >
expr_type& cml::et::UnaryMatrixOp< ExprT, OpT >::operator= ( const expr_type  )  [private]

template<class ExprT , class OpT >
size_t cml::et::UnaryMatrixOp< ExprT, OpT >::rows (  )  const [inline]

Return number of rows in the expression (same as argument).

Definition at line 217 of file matrix_expr.h.

References cml::et::UnaryMatrixOp< ExprT, OpT >::m_expr.

Referenced by cml::et::ExprTraits< UnaryMatrixOp< ExprT, OpT > >::rows(), and cml::et::UnaryMatrixOp< ExprT, OpT >::size().

Here is the caller graph for this function:

template<class ExprT , class OpT >
matrix_size cml::et::UnaryMatrixOp< ExprT, OpT >::size (  )  const [inline]

Return the expression size as a pair.

Definition at line 212 of file matrix_expr.h.

References cml::et::UnaryMatrixOp< ExprT, OpT >::cols(), and cml::et::UnaryMatrixOp< ExprT, OpT >::rows().

Referenced by cml::et::ExprTraits< UnaryMatrixOp< ExprT, OpT > >::size().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

template<class ExprT , class OpT >
expr_reference cml::et::UnaryMatrixOp< ExprT, OpT >::m_expr [protected]


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

Generated on Sat Jul 18 19:35:39 2009 for CML 1.0 by  doxygen 1.5.9