lambda-lanczos 2.0.0
Loading...
Searching...
No Matches
lambda_lanczos::VectorRandomInitializer< T > Struct Template Reference

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...
 

Detailed Description

template<typename T>
struct lambda_lanczos::VectorRandomInitializer< T >

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.

Member Function Documentation

◆ init()

template<typename T >
static void lambda_lanczos::VectorRandomInitializer< T >::init ( std::vector< T > &  v)
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].


The documentation for this struct was generated from the following file: