Sign

Description

Returns the sign of input.

 

Input parameters

 

 x : class, n-dimensional tensor.

Output parameters

 

sign : class, returns 1 if the input value is greater than 0, returns 0 if the input value is equal to 0, and returns –1 if the input value is less than 0.

Examples

All these examples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Accelerator library to run it).

Table of Contents