LabVIEW Multicore Analysis and Sparse Matrix Toolkit API Reference

Vector Norm VI

  • Updated2023-02-21
  • 7 minute(s) read

Vector Norm VI

Owning Palette: Linear Algebra VIs

Requires: Multicore Analysis and Sparse Matrix Toolkit

Computes the norm of Input Vector.

Wire data to the Input Vector input to determine the polymorphic instance to use or manually select the instance.

Details  

Vector Norm (DBL)

Input Vector specifies a vector. If Input Vector is empty, this VI sets norm to NaN.
norm type specifies the type of vector norm to compute. Let X represent the Input Vector. ||X||p represents the norm of X, where p are the different types of vector norms, such as 1-norm, 2-norm, and so on, that this VI can compute.

11-norm—Specifies that the norm of X is defined by the following:

||X||1=|x0|+|x1|+…+|xn-1|

22-norm (default)—Specifies that the norm of X is defined by the following:

3Inf-norm—Specifies that the norm of X is defined by the following:

||X||Inf=maxi(|xi|)

4-Inf-norm—Specifies that the norm of X is defined by the following:

||X||-Inf=mini(|xi|)

5User Defined—Specifies that the norm of X is defined by the following:

where y is user defined norm.
user defined norm specifies the user defined norm type. The default is –1. user defined norm is valid only if norm type is User Defined. user defined norm must be nonzero.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
norm returns the norm of Input Vector.
error out contains error information. This output provides standard error out functionality.

Vector Norm (SGL)

Input Vector specifies a vector. If Input Vector is empty, this VI sets norm to NaN.
norm type specifies the type of vector norm to compute. Let X represent the Input Vector. ||X||p represents the norm of X, where p are the different types of vector norms, such as 1-norm, 2-norm, and so on, that this VI can compute.

11-norm—Specifies that the norm of X is defined by the following:

||X||1=|x0|+|x1|+…+|xn-1|

22-norm (default)—Specifies that the norm of X is defined by the following:

3Inf-norm—Specifies that the norm of X is defined by the following:

||X||Inf=maxi(|xi|)

4-Inf-norm—Specifies that the norm of X is defined by the following:

||X||-Inf=mini(|xi|)

5User Defined—Specifies that the norm of X is defined by the following:

where y is user defined norm.
user defined norm specifies the user defined norm type. The default is –1. user defined norm is valid only if norm type is User Defined. user defined norm must be nonzero.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
norm returns the norm of Input Vector.
error out contains error information. This output provides standard error out functionality.

Vector Norm (CDB)

Input Vector specifies a vector. If Input Vector is empty, this VI sets norm to NaN.
norm type specifies the type of vector norm to compute. Let X represent the Input Vector. ||X||p represents the norm of X, where p are the different types of vector norms, such as 1-norm, 2-norm, and so on, that this VI can compute.

11-norm—Specifies that the norm of X is defined by the following:

||X||1=|x0|+|x1|+…+|xn-1|

22-norm (default)—Specifies that the norm of X is defined by the following:

3Inf-norm—Specifies that the norm of X is defined by the following:

||X||Inf=maxi(|xi|)

4-Inf-norm—Specifies that the norm of X is defined by the following:

||X||-Inf=mini(|xi|)

5User Defined—Specifies that the norm of X is defined by the following:

where y is user defined norm.
user defined norm specifies the user defined norm type. The default is –1. user defined norm is valid only if norm type is User Defined. user defined norm must be nonzero.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
norm returns the norm of Input Vector.
error out contains error information. This output provides standard error out functionality.

Vector Norm (CSG)

Input Vector specifies a vector. If Input Vector is empty, this VI sets norm to NaN.
norm type specifies the type of vector norm to compute. Let X represent the Input Vector. ||X||p represents the norm of X, where p are the different types of vector norms, such as 1-norm, 2-norm, and so on, that this VI can compute.

11-norm—Specifies that the norm of X is defined by the following:

||X||1=|x0|+|x1|+…+|xn-1|

22-norm (default)—Specifies that the norm of X is defined by the following:

3Inf-norm—Specifies that the norm of X is defined by the following:

||X||Inf=maxi(|xi|)

4-Inf-norm—Specifies that the norm of X is defined by the following:

||X||-Inf=mini(|xi|)

5User Defined—Specifies that the norm of X is defined by the following:

where y is user defined norm.
user defined norm specifies the user defined norm type. The default is –1. user defined norm is valid only if norm type is User Defined. user defined norm must be nonzero.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
norm returns the norm of Input Vector.
error out contains error information. This output provides standard error out functionality.

Vector Norm Details

The following table lists the support characteristics of this VI.

Supported on RT targets Yes
Suitable for bounded execution times on RT Yes

Log in to get a better experience