Computes the norm of Input Matrix. Wire data to the Input Matrix input to determine the polymorphic instance to use or manually select the instance.

Note You can use the Vector Norm VI or the Unit Vector VI to calculate the vector norm.


icon

Inputs/Outputs

  • c2ddbl.png Input Matrix

    Input Matrix can be a square or rectangular, real matrix.

  • ci32.png norm type

    norm type indicates what type of norm is used to compute the norm.

    02-norm—||A||2 is the largest singular value of the Input Matrix.
    11-norm—||A||1 is the largest absolute column sum of the Input Matrix.
    2F-norm—||A||f is equal to where diag(ATA) means the diagonal elements of matrix ATA and AT is the transpose of A.
    3inf-norm—||A|| is the largest absolute row sum of the Input Matrix.
  • idbl.png norm

    norm is a scalar that gives some measure of the magnitude of the elements in the matrix.

    Let A represent the Input Matrix, the norm of A is represented by ||A||p, where p can be 1, 2, F, or infinity, indicating different types of norms that are computed.

  • ii32.png error

    error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Linear Algebra\Linear Algebra Calculator.vi
    • labview\examples\Mathematics\Linear Algebra\Matrix to a Power.vi