Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
using namespace ngbla;
4
5
void 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
12
void SetRandom (SliceVector<> vec)
13
{
Callers
1
ngblas.cpp
File · 0.85
Calls
6
sin
Function · 0.50
Complex
Function · 0.50
cos
Function · 0.50
Height
Method · 0.45
Width
Method · 0.45
Size
Method · 0.45
Tested by
no test coverage detected