Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antmachineintelligence/mtgbmcode
/ serial_saxpy
Function
serial_saxpy
compute/perf/perf_stl_saxpy.cpp:23–28 ·
view source on GitHub ↗
y <- alpha * x + y
Source
from the content-addressed store, hash-verified
21
22
// y <- alpha * x + y
23
void serial_saxpy(size_t n, float alpha, const float *x, float *y)
24
{
25
for(size_t i = 0; i < n; i++){
26
y[i] = alpha * x[i] + y[i];
27
}
28
}
29
30
int main(int argc, char *argv[])
31
{
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected