mirror of
https://github.com/socathie/circomlib-ml.git
synced 2026-01-08 21:48:06 -05:00
14 lines
302 B
Plaintext
14 lines
302 B
Plaintext
pragma circom 2.0.0;
|
|
|
|
// matrix multiplication by element
|
|
template matElemMul (m,n) {
|
|
signal input a[m][n];
|
|
signal input b[m][n];
|
|
signal output out[m][n];
|
|
|
|
for (var i=0; i < m; i++) {
|
|
for (var j=0; j < n; j++) {
|
|
out[i][j] <== a[i][j] * b[i][j];
|
|
}
|
|
}
|
|
} |