MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / modify

Function modify

check/cublas_example.cpp:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#define IDX2C(i, j, ld) (((j) * (ld)) + (i))
12
13static __inline__ void modify(cublasHandle_t handle, float* m, int ldm, int n,
14 int p, int q, float alpha, float beta) {
15 cublasSscal(handle, n - q, &alpha, &m[IDX2C(p, q, ldm)], ldm);
16 cublasSscal(handle, ldm - p, &beta, &m[IDX2C(p, q, ldm)], 1);
17}
18
19int main(void) {
20 cudaError_t cudaStat;

Callers 2

find_and_modifyFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected