Jet  v1.3.3
Public Member Functions | List of all members
jet::MatrixUnaryOp< T, E, Op > Class Template Reference

Matrix expression for unary operation. More...

#include <jet/matrix_expression.h>

Inheritance diagram for jet::MatrixUnaryOp< T, E, Op >:
jet::MatrixExpression< T, MatrixUnaryOp< T, E, Op > >

Public Member Functions

 MatrixUnaryOp (const E &u)
 Constructs unary operation expression for given input expression. More...
 
Size2 size () const
 Size of the matrix. More...
 
size_t rows () const
 Number of rows. More...
 
size_t cols () const
 Number of columns. More...
 
operator() (size_t i, size_t j) const
 Returns matrix element at (i, j). More...
 
- Public Member Functions inherited from jet::MatrixExpression< T, MatrixUnaryOp< T, E, Op > >
Size2 size () const
 Size of the matrix. More...
 
size_t rows () const
 Number of rows. More...
 
size_t cols () const
 Number of columns. More...
 
const MatrixUnaryOp< T, E, Op > & operator() () const
 Returns actual implementation (the subclass). More...
 

Detailed Description

template<typename T, typename E, typename Op>
class jet::MatrixUnaryOp< T, E, Op >

Matrix expression for unary operation.

This matrix expression represents an unary matrix operation that takes single input matrix expression.

Template Parameters
TReal number type.
EInput expression type.
OpUnary operation.

Constructor & Destructor Documentation

◆ MatrixUnaryOp()

template<typename T , typename E , typename Op >
jet::MatrixUnaryOp< T, E, Op >::MatrixUnaryOp ( const E &  u)

Constructs unary operation expression for given input expression.

Member Function Documentation

◆ cols()

template<typename T , typename E , typename Op >
size_t jet::MatrixUnaryOp< T, E, Op >::cols ( ) const

Number of columns.

◆ operator()()

template<typename T , typename E , typename Op >
T jet::MatrixUnaryOp< T, E, Op >::operator() ( size_t  i,
size_t  j 
) const

Returns matrix element at (i, j).

◆ rows()

template<typename T , typename E , typename Op >
size_t jet::MatrixUnaryOp< T, E, Op >::rows ( ) const

Number of rows.

◆ size()

template<typename T , typename E , typename Op >
Size2 jet::MatrixUnaryOp< T, E, Op >::size ( ) const

Size of the matrix.


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