Esempio n. 1
0
ExpressionDot<ExpressionScalar,RExpressionType>
dot(const Real& l, const ExpressionBase<RExpressionType>& r)
{
    return ExpressionDot<ExpressionScalar,RExpressionType>(ExpressionScalar(l),r.cast());
}
Esempio n. 2
0
ExpressionAddition<ExpressionScalar, RExpressionType>
operator+ (const Real& l, const ExpressionBase<RExpressionType>& r)
{
    return ExpressionAddition<ExpressionScalar, RExpressionType> (ExpressionScalar (l), r.cast() );
}
Esempio n. 3
0
ExpressionDot<LExpressionType, ExpressionScalar >
dot(const ExpressionBase<LExpressionType>& l, const Real& r)
{
    return ExpressionDot<LExpressionType,ExpressionScalar>(l.cast(),ExpressionScalar(r));
}
Esempio n. 4
0
ExpressionAddition<LExpressionType, ExpressionScalar >
operator+ (const ExpressionBase<LExpressionType>& l, const Real& r)
{
    return ExpressionAddition<LExpressionType, ExpressionScalar> (l.cast(), ExpressionScalar (r) );
}