MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / SetRandom

Function SetRandom

tests/catch/ngblas.cpp:5–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace ngbla;
4
5void SetRandom (SliceMatrix<> mat)
6{
7 for (int i = 0; i < mat.Height(); i++)
8 for (int j = 0; j < mat.Width(); j++)
9 mat(i,j) = sin(2+3*i+5*j);
10}
11
12void SetRandom (SliceVector<> vec)
13{

Callers 1

ngblas.cppFile · 0.85

Calls 6

sinFunction · 0.50
ComplexFunction · 0.50
cosFunction · 0.50
HeightMethod · 0.45
WidthMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected