float (version 0.2-3)

norm: norm

Description

Compute matrix norm.

Usage

# S4 method for float32,ANY
norm(x, type = c("O", "I", "F", "M", "2"))

Arguments

x

A float vector/matrix.

type

"O"-ne, "I"-nfinity, "F"-robenius, "M"-ax modulus, and "2" norms.

Value

A single float.

Examples

Run this code
# NOT RUN {
library(float)

s = flrunif(10, 3)
norm(s, type="O")

# }

Run the code above in your browser using DataLab