#include <matrix_transpose.h>
Public Types | |
enum | { array_rows = result_type::array_rows, array_cols = result_type::array_cols } |
Record result size as an enum. 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 MatrixTransposeOp< ExprT > | expr_type |
typedef matrix_result_tag | result_tag |
typedef expr_traits::result_type::transposed_type | result_type |
typedef ExprT::size_tag | size_tag |
typedef result_type::temporary_type | temporary_type |
typedef ExprT::value_type | value_type |
Public Member Functions | |
size_t | cols () const |
Return result cols. | |
expr_reference | expression () const |
Return reference to contained expression. | |
MatrixTransposeOp (const expr_type &e) | |
Copy constructor. | |
MatrixTransposeOp (const ExprT &expr) | |
Construct from the subexpression to store. | |
value_type | operator() (size_t i, size_t j) const |
Compute value at index i of the result matrix. | |
size_t | rows () const |
Return result rows. | |
matrix_size | size () const |
Return the expression size as a pair. | |
Protected Attributes | |
expr_reference | m_expr |
Private Member Functions | |
expr_type & | operator= (const expr_type &) |
This does nothing more than change the result type of the expression into one with the opposite orientation (i.e. row->col, col->row).
Definition at line 36 of file matrix_transpose.h.
typedef cml::et::not_assignable_tag cml::et::MatrixTransposeOp< ExprT >::assignable_tag |
Definition at line 65 of file matrix_transpose.h.
typedef unary_expression cml::et::MatrixTransposeOp< ExprT >::expr_ary |
Definition at line 43 of file matrix_transpose.h.
typedef expr_type cml::et::MatrixTransposeOp< ExprT >::expr_const_reference |
Definition at line 46 of file matrix_transpose.h.
typedef expr_traits::const_reference cml::et::MatrixTransposeOp< ExprT >::expr_reference |
Definition at line 56 of file matrix_transpose.h.
typedef ExprTraits<ExprT> cml::et::MatrixTransposeOp< ExprT >::expr_traits |
Definition at line 53 of file matrix_transpose.h.
typedef MatrixTransposeOp<ExprT> cml::et::MatrixTransposeOp< ExprT >::expr_type |
Definition at line 40 of file matrix_transpose.h.
typedef matrix_result_tag cml::et::MatrixTransposeOp< ExprT >::result_tag |
Definition at line 49 of file matrix_transpose.h.
typedef expr_traits::result_type::transposed_type cml::et::MatrixTransposeOp< ExprT >::result_type |
Definition at line 59 of file matrix_transpose.h.
typedef ExprT::size_tag cml::et::MatrixTransposeOp< ExprT >::size_tag |
Definition at line 50 of file matrix_transpose.h.
typedef result_type::temporary_type cml::et::MatrixTransposeOp< ExprT >::temporary_type |
Definition at line 62 of file matrix_transpose.h.
typedef ExprT::value_type cml::et::MatrixTransposeOp< ExprT >::value_type |
Definition at line 48 of file matrix_transpose.h.
anonymous enum |
cml::et::MatrixTransposeOp< ExprT >::MatrixTransposeOp | ( | const ExprT & | expr | ) | [inline, explicit] |
cml::et::MatrixTransposeOp< ExprT >::MatrixTransposeOp | ( | const expr_type & | e | ) | [inline] |
size_t cml::et::MatrixTransposeOp< ExprT >::cols | ( | ) | const [inline] |
Return result cols.
The tranpose has the same number of columns as the original has rows.
Definition at line 98 of file matrix_transpose.h.
References cml::et::MatrixTransposeOp< ExprT >::m_expr.
Referenced by cml::et::ExprTraits< MatrixTransposeOp< ExprT > >::cols(), and cml::et::MatrixTransposeOp< ExprT >::size().
expr_reference cml::et::MatrixTransposeOp< ExprT >::expression | ( | ) | const [inline] |
Return reference to contained expression.
Definition at line 103 of file matrix_transpose.h.
References cml::et::MatrixTransposeOp< ExprT >::m_expr.
value_type cml::et::MatrixTransposeOp< ExprT >::operator() | ( | size_t | i, | |
size_t | j | |||
) | const [inline] |
Compute value at index i of the result matrix.
Element (i,j) of the transpose is element (j,i) of the original expression.
Definition at line 110 of file matrix_transpose.h.
References cml::et::MatrixTransposeOp< ExprT >::m_expr.
expr_type& cml::et::MatrixTransposeOp< ExprT >::operator= | ( | const expr_type & | ) | [private] |
size_t cml::et::MatrixTransposeOp< ExprT >::rows | ( | ) | const [inline] |
Return result rows.
The tranpose has the same number of rows as the original has columns.
Definition at line 89 of file matrix_transpose.h.
References cml::et::MatrixTransposeOp< ExprT >::m_expr.
Referenced by cml::et::ExprTraits< MatrixTransposeOp< ExprT > >::rows(), and cml::et::MatrixTransposeOp< ExprT >::size().
matrix_size cml::et::MatrixTransposeOp< ExprT >::size | ( | ) | const [inline] |
Return the expression size as a pair.
Definition at line 80 of file matrix_transpose.h.
References cml::et::MatrixTransposeOp< ExprT >::cols(), and cml::et::MatrixTransposeOp< ExprT >::rows().
Referenced by cml::et::ExprTraits< MatrixTransposeOp< ExprT > >::size().
expr_reference cml::et::MatrixTransposeOp< ExprT >::m_expr [protected] |
Definition at line 126 of file matrix_transpose.h.
Referenced by cml::et::MatrixTransposeOp< ExprT >::cols(), cml::et::MatrixTransposeOp< ExprT >::expression(), cml::et::MatrixTransposeOp< ExprT >::operator()(), and cml::et::MatrixTransposeOp< ExprT >::rows().