Skip to main content

TensorMath.argSort

Function

Similar to numpy.argsort(), but in TensorMath, we have no kind and order parameters.

  • 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.

argSort(inTensor, shape, axis, outTensor): void

Similar to numpy.argsort(), but in TensorMath, we have no kind and order parameters. Also, tensor is always 3D, and axis can be equal to 0(x), 1(y) or 2(z).

Parameters

ParameterType
inTensorFloat32Array
shapevec3
axisnumber
outTensorUint32Array

Returns

void