op_scalar_times Class Reference
[Op_scalar_misc]

'multiply matrix by a scalar' operation More...

#include <op_scalar_misc_proto.hpp>

List of all members.

Static Public Member Functions

template<typename T1 >
static void apply (Mat< typename T1::elem_type > &out, const Op< T1, op_scalar_times > &in)
 Multiply all elements of a matrix by a scalar and store the result in a dense matrix.
template<typename T1 , typename T2 , typename glue_type >
static void apply (Mat< typename T1::elem_type > &out, const Op< Glue< T1, T2, glue_type >, op_scalar_times > &in)
 Evaluate Glue<T1,T2,glue_type>, and then multiply each element of the result by a scalar. Store the final result in a dense matrix.
template<typename T1 , typename T2 >
static void apply (Mat< typename T1::elem_type > &out, const Op< Glue< T1, T2, glue_plus >, op_scalar_times > &in)
 Evaluate A + B, and then multiply each element of the result by a scalar. Store the final result in a dense matrix.
template<typename T1 , typename T2 >
static void apply (Mat< typename T1::elem_type > &out, const Op< Glue< T1, T2, glue_minus >, op_scalar_times > &in)
 Evaluate A - B, and then multiply each element of the result by a scalar. Store the final result in a dense matrix.
template<typename T1 , typename T2 >
static void apply (Mat< typename T1::elem_type > &out, const Op< Glue< T1, T2, glue_schur >, op_scalar_times > &in)
 Evaluate A % B (where % is the element-wise multiply operation) and then multiply each element of the result by a scalar. Store the final result in a dense matrix.


Detailed Description

'multiply matrix by a scalar' operation

Definition at line 54 of file op_scalar_misc_proto.hpp.