Skip to main content

TensorMath.mulTensors

Function

Multiplies inTensorA and inTensorB and puts the result into outTensor.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

mulTensors(inTensorA, inShapeA, inTensorB, inShapeB, outTensor): void

Multiplies inTensorA and inTensorB and puts the result into outTensor. See broadcasting rules for elementwise operations.

Parameters

ParameterType
inTensorAFloat32Array
inShapeAvec3
inTensorBFloat32Array
inShapeBvec3
outTensorFloat32Array

Returns

void