Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abess-team/abess
/ RandomFill
Function
RandomFill
python/include/unsupported/doc/examples/FFT.cpp:61–65 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
59
60
template <typename T>
61
void RandomFill(std::vector<T> & vec)
62
{
63
for (size_t k=0;k<vec.size();++k)
64
vec[k] = T( rand() )/T(RAND_MAX) - .5;
65
}
66
67
template <typename T>
68
void RandomFill(std::vector<std::complex<T> > & vec)
Callers
1
fwd_inv
Function · 0.85
Calls
1
size
Method · 0.45
Tested by
no test coverage detected