35 #ifndef _BLAZE_MATH_VIEWS_ROW_H_
36 #define _BLAZE_MATH_VIEWS_ROW_H_
101 inline typename DisableIf< Or< IsComputation<MT>, IsTransExpr<MT> >
102 ,
typename RowExprTrait<MT>::Type >::Type
141 template<
typename MT
143 inline typename DisableIf< Or< IsComputation<MT>, IsTransExpr<MT> >
144 ,
typename RowExprTrait<const MT>::Type >::Type
175 template<
typename MT
177 inline typename EnableIf< IsMatMatAddExpr<MT>,
typename RowExprTrait<MT>::Type >::Type
178 row(
const Matrix<MT,SO>& matrix,
size_t index )
182 return row( (~matrix).leftOperand(), index ) +
row( (~matrix).rightOperand(), index );
200 template<
typename MT
202 inline typename EnableIf< IsMatMatSubExpr<MT>,
typename RowExprTrait<MT>::Type >::Type
203 row(
const Matrix<MT,SO>& matrix,
size_t index )
207 return row( (~matrix).leftOperand(), index ) -
row( (~matrix).rightOperand(), index );
225 template<
typename MT
227 inline typename EnableIf< IsMatMatMultExpr<MT>,
typename RowExprTrait<MT>::Type >::Type
228 row(
const Matrix<MT,SO>& matrix,
size_t index )
232 return row( (~matrix).leftOperand(), index ) * (~matrix).rightOperand();
249 template<
typename MT
251 inline typename EnableIf< IsVecTVecMultExpr<MT>,
typename RowExprTrait<MT>::Type >::Type
252 row(
const Matrix<MT,SO>& matrix,
size_t index )
256 return (~matrix).leftOperand()[index] * (~matrix).rightOperand();
274 template<
typename MT
276 inline typename EnableIf< IsMatScalarMultExpr<MT>,
typename RowExprTrait<MT>::Type >::Type
277 row(
const Matrix<MT,SO>& matrix,
size_t index )
281 return row( (~matrix).leftOperand(), index ) * (~matrix).rightOperand();
299 template<
typename MT
301 inline typename EnableIf< IsMatScalarDivExpr<MT>,
typename RowExprTrait<MT>::Type >::Type
302 row(
const Matrix<MT,SO>& matrix,
size_t index )
306 return row( (~matrix).leftOperand(), index ) / (~matrix).rightOperand();
324 template<
typename MT
326 inline typename EnableIf< IsMatAbsExpr<MT>,
typename RowExprTrait<MT>::Type >::Type
327 row(
const Matrix<MT,SO>& matrix,
size_t index )
331 return abs(
row( (~matrix).operand(), index ) );
349 template<
typename MT
351 inline typename EnableIf< IsMatEvalExpr<MT>,
typename RowExprTrait<MT>::Type >::Type
352 row(
const Matrix<MT,SO>& matrix,
size_t index )
356 return eval(
row( (~matrix).operand(), index ) );
374 template<
typename MT
376 inline typename EnableIf< IsMatTransExpr<MT>,
typename RowExprTrait<MT>::Type >::Type
377 row(
const Matrix<MT,SO>& matrix,
size_t index )
381 return trans(
column( (~matrix).operand(), index ) );
DisableIf< Or< IsComputation< MT >, IsTransExpr< MT > >, typename ColumnExprTrait< MT >::Type >::Type column(Matrix< MT, SO > &matrix, size_t index)
Creating a view on a specific column of the given matrix.
Definition: Column.h:103
const DMatAbsExpr< MT, SO > abs(const DenseMatrix< MT, SO > &dm)
Returns a matrix containing the absolute values of each single element of dm.
Definition: DMatAbsExpr.h:909
Header file for the IsTransExpr type trait class.
Header file for the IsMatMatAddExpr type trait class.
Header file for the IsMatTransExpr type trait class.
Header file for the IsMatAbsExpr type trait class.
Header file for the DisableIf class template.
Header file for the IsVecTVecMultExpr type trait class.
Header file for the Or class template.
Header file for the IsMatMatMultExpr type trait class.
Header file for the IsMatScalarMultExpr type trait class.
Header file for the IsMatEvalExpr type trait class.
Evaluation of the expression type type of a row operation.Via this type trait it is possible to evalu...
Definition: RowExprTrait.h:78
Header file for the RowExprTrait class template.
Header file for the EnableIf class template.
DisableIf< Or< IsComputation< MT >, IsTransExpr< MT > >, typename RowExprTrait< MT >::Type >::Type row(Matrix< MT, SO > &matrix, size_t index)
Creating a view on a specific row of the given matrix.
Definition: Row.h:103
Header file for the Matrix base class.
const Type & ReturnType
Return type for expression template evaluations.
Definition: CompressedMatrix.h:2477
Header file for the IsMatScalarDivExpr type trait class.
const DMatEvalExpr< MT, SO > eval(const DenseMatrix< MT, SO > &dm)
Forces the evaluation of the given dense matrix expression dm.
Definition: DMatEvalExpr.h:677
Header file for the IsMatMatSubExpr type trait class.
const DMatTransExpr< MT,!SO > trans(const DenseMatrix< MT, SO > &dm)
Calculation of the transpose of the given dense matrix.
Definition: DMatTransExpr.h:932
Header file for the IsComputation type trait class.
#define BLAZE_FUNCTION_TRACE
Function trace macro.This macro can be used to reliably trace function calls. In case function tracin...
Definition: FunctionTrace.h:157
Header file for basic type definitions.
Header file for the FunctionTrace class.