Scale By Power Of Two

Description

Multiplies x by 2 raised to the power of n.

 

Input parameters

 

n : integer, scalar number. This function rounds n before it scales x (0.5 rounds to 0; 0.51 rounds to 1).
 x : class, n-dimensional tensor.

Output parameters

 

x*2^n : class, the result of multiplying x by 2, raised to the power of n.

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