Houdini 20.5 Nodes APEX nodes

array::Subtract<T>

Subtracts two arrays element-wise.

On this page
Since 20.0

Subtracts arrays a and b element-wise. If the arrays have different lengths, an error is raised.

Inputs

a: FloatArray, IntArray, Matrix3Array, Matrix4Array, Vector2Array, Vector3Array, Vector4Array

An input array.

b: FloatArray, IntArray, Matrix3Array, Matrix4Array, Vector2Array, Vector3Array, Vector4Array

An array whose elements are subtracted from array a.

Outputs

result: FloatArray, IntArray, Matrix3Array, Matrix4Array, Vector2Array, Vector3Array, Vector4Array

An array with elements that are the element-wise difference of arrays a and b (a[element] - b[element]).

See also

APEX nodes