hppiDiv

Divide elements of a matrix by elements of another matrix.

Syntax

hppStatus hppiDiv ( hppAccel accel , hppiMatrix * src1 , hppiMatrix * src2 , int scale , hppiMatrix * dst );

Parameters

accel

The accelerator instance.

src1, src2

The source matrix instances.

scale

Scaling factor for calculations with fixed precision.

dst

The destination matrix instance.

Description

This function divides elements of the source matrix src1 by elements of the source matrix src2, and stores the result in the destination matrix.

For calculations with fixed precision, the function performs scaling of the results before storing them in the destination matrix.

Return Values

HPP_STATUS_NO_ERROR

The operation is queued successfully.

HPP_STATUS_DEVICE_FAILED

The accel handle is invalid.

s

HPP_STATUS_SIZE_MISMATCHED

The src1, src2, and dst matrices mismatch in size.

HPP_STATUS_TYPE_MISMATCHED

The src1, src2, and dst matrices mismatch in type.

HPP_STATUS_HANDLE_INVALID

The src1, src2, and dst matrix instances are invalid.

HPP_STATUS_PARAM_UNSUPPORTED

The src1, src2, and dst matrix instances have unsupported type.

See Also

For more complete information about compiler optimizations, see our Optimization Notice.