op_rand Class Reference
[Op_rand]

'generate matrix with random values' operation More...

#include <op_rand_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_rand > &in)
template<typename eT >
static void apply (Cube< eT > &out, const OpCube< Cube< eT >, op_rand > &in)

Static Private Member Functions

template<typename eT >
static void direct_rand (eT *x, const u32 n_elem)
 TODO: optionally use the Marsenne-Twister random number generator (see Boost).
template<typename T >
static void direct_rand (std::complex< T > *x, const u32 n_elem)

Detailed Description

'generate matrix with random values' operation

Definition at line 22 of file op_rand_proto.hpp.