#include <op_scalar_misc_proto.hpp>
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. |
Definition at line 54 of file op_scalar_misc_proto.hpp.