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

Matrix expression for binary operation. More...

#include <jet/matrix_expression.h>

Inheritance diagram for jet::MatrixBinaryOp< T, E1, E2, Op >:
jet::MatrixExpression< T, MatrixBinaryOp< T, E1, E2, Op > >

Public Member Functions

 MatrixBinaryOp (const E1 &u, const E2 &v)
 
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, MatrixBinaryOp< T, E1, E2, 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 MatrixBinaryOp< T, E1, E2, Op > & operator() () const
 Returns actual implementation (the subclass). More...
 

Detailed Description

template<typename T, typename E1, typename E2, typename Op>
class jet::MatrixBinaryOp< T, E1, E2, Op >

Matrix expression for binary operation.

This matrix expression represents a binary matrix operation that takes two input matrix expressions.

Template Parameters
TReal number type.
E1First input expression type.
E2Second input expression type.
OpBinary operation.

Constructor & Destructor Documentation

◆ MatrixBinaryOp()

template<typename T , typename E1 , typename E2 , typename Op >
jet::MatrixBinaryOp< T, E1, E2, Op >::MatrixBinaryOp ( const E1 &  u,
const E2 &  v 
)

Constructs binary operation expression for given input matrix expressions.

Member Function Documentation

◆ cols()

template<typename T , typename E1 , typename E2 , typename Op >
size_t jet::MatrixBinaryOp< T, E1, E2, Op >::cols ( ) const

Number of columns.

◆ operator()()

template<typename T , typename E1 , typename E2 , typename Op >
T jet::MatrixBinaryOp< T, E1, E2, Op >::operator() ( size_t  i,
size_t  j 
) const

Returns matrix element at (i, j).

◆ rows()

template<typename T , typename E1 , typename E2 , typename Op >
size_t jet::MatrixBinaryOp< T, E1, E2, Op >::rows ( ) const

Number of rows.

◆ size()

template<typename T , typename E1 , typename E2 , typename Op >
Size2 jet::MatrixBinaryOp< T, E1, E2, Op >::size ( ) const

Size of the matrix.


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