QMCPACK
FakeRandom.cpp
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
6 //
7 // File developed by: Mark Dewing, markdewing@gmail.com, University of Illinois at Urbana-Champaign
8 //
9 // File created by: Mark Dewing, markdewing@gmail.com, University of Illinois at Urbana-Champaign
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 
13 #include "FakeRandom.h"
14 
15 namespace qmcplusplus
16 {
17 template<class T>
18 FakeRandom<T>::FakeRandom() = default;
19 
20 template<class T>
21 void FakeRandom<T>::set_value(double val)
22 {
23  m_val = val;
24 }
25 
26 template<class T>
28 {
29  return m_val;
30 }
31 
32 template class FakeRandom<float>;
33 template class FakeRandom<double>;
34 
35 } // namespace qmcplusplus
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
T operator()() override
Definition: FakeRandom.cpp:27
void set_value(double val)
Definition: FakeRandom.cpp:21