waylonflinn / weblas

GPU Powered BLAS for Browsers :gem:
MIT License
702 stars 43 forks source link

The purpose of the third Matrix C? #36

Closed NHQ closed 7 years ago

NHQ commented 7 years ago

What is the purpose of the third matrix C? From the examples:

var C = new Float32Array(w2)      // specialized for neural net bias calculation

// result will contain matrix multiply of A x B (times alpha)
result = weblas.sgemm(M, N, K, alpha, A, B, beta, C);

In my tests, nothing happens to C, even when I change the beta value; it remains as whatever it was initialized.

NHQ commented 7 years ago

nvm, I get it!