MCPcopy Index your code
hub / github.com/gpujs/gpu.js / getMatrix

Function getMatrix

test/features/internally-defined-matrices.js:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6function testMatrix2(mode) {
7 const gpu = new GPU({ mode });
8 function getMatrix() {
9 const matrix = [
10 [1,2],
11 [3,4]
12 ];
13 return matrix;
14 }
15 gpu.addFunction(getMatrix);
16 const kernel = gpu.createKernel(function(y, x) {
17 return getMatrix()[y][x];

Callers 3

testMatrix2Function · 0.85
testMatrix3Function · 0.85
testMatrix4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…