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

Method checkOutput

src/backend/kernel.js:811–819  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

809 }
810
811 checkOutput() {
812 if (!this.output || !utils.isArray(this.output)) throw new Error('kernel.output not an array');
813 if (this.output.length < 1) throw new Error('kernel.output is empty, needs at least 1 value');
814 for (let i = 0; i < this.output.length; i++) {
815 if (isNaN(this.output[i]) || this.output[i] < 1) {
816 throw new Error(`${ this.constructor.name }.output[${ i }] incorrectly defined as \`${ this.output[i] }\`, needs to be numeric, and greater than 0`);
817 }
818 }
819 }
820
821 /**
822 *

Callers 3

validateSettingsMethod · 0.80
validateSettingsMethod · 0.80
validateSettingsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected