Tensor
A C++ expression template library for computations on N dimensional tensors
Functions
anonymous_namespace{tensor_operations.hpp} Namespace Reference

Functions

template<typename E1 , typename E2 , typename T1 , typename T2 >
const ftl::TensorAddition< E1, E2, T1, T2 > operator+ (ftl::TensorExpression< E1, T1 > const &x, ftl::TensorExpression< E2, T2 > const &y)
 Adds two tensor expressions. More...
 
template<typename E1 , typename E2 , typename T1 , typename T2 >
const ftl::TensorSubtraction< E1, E2, T1, T2 > operator- (ftl::TensorExpression< E1, T1 > const &x, ftl::TensorExpression< E2, T2 > const &y)
 Subtracts two tensor expressions. More...
 

Function Documentation

template<typename E1 , typename E2 , typename T1 , typename T2 >
const ftl::TensorAddition<E1, E2, T1, T2> anonymous_namespace{tensor_operations.hpp}::operator+ ( ftl::TensorExpression< E1, T1 > const &  x,
ftl::TensorExpression< E2, T2 > const &  y 
)

Adds two tensor expressions.

Parameters
[in]xThe first expression to add
[in]yThe second expression to add
Returns
The result of the addition of the two tensor_expressions.
Template Parameters
E1The type of the first expression for the addition
E2The type of the second expression for the addition
T1The traits of the first tensors – for addition the traits for the returned tensor are the same as the first tensor for additio
T2The traits of the second expression
template<typename E1 , typename E2 , typename T1 , typename T2 >
const ftl::TensorSubtraction<E1, E2, T1, T2> anonymous_namespace{tensor_operations.hpp}::operator- ( ftl::TensorExpression< E1, T1 > const &  x,
ftl::TensorExpression< E2, T2 > const &  y 
)

Subtracts two tensor expressions.

Parameters
[in]xThe first expression to subtract from
[in]yThe second expression to subtract with
Returns
The result of the subtraction of the two tensor_expressions.
Template Parameters
E1The type of the first expression for the subtraction
E2The type of the second expression for the subtraction
T1The traits of the first tensors – for subtraction the traits for the returned tensor are the same as the first tensor for additio
T2The traits of the second expression