lambda-lanczos 2.0.0
|
Template class to implement random vector initializer. More...
#include <lambda_lanczos.hpp>
Static Public Member Functions | |
static void | init (std::vector< T > &v) |
Initialize given vector randomly in the range of [-1, 1]. More... | |
Template class to implement random vector initializer.
"Partially specialization of function" is not allowed, so here it is mimicked by wrapping the "init" function with a class template.
|
inlinestatic |
Initialize given vector randomly in the range of [-1, 1].
For complex type, the real and imaginary part of each element will be initialized in the range of [-1, 1].