Learn R Programming

gpuR (version 2.0.6)

norm,vclMatrix,character-method: Compute the Norm of a Matrix

Description

Computes a matrix norm of x. The norm can be the one \("O"\) norm, the infinity \("I"\) norm, the Frobenius \("F"\) norm, the maximum modulus \("M"\) among elements of a matrix, or the “spectral” or "2"-norm, as determined by the value of type.

Usage

# S4 method for vclMatrix,character
norm(x, type)

# S4 method for vclMatrix,missing norm(x, type)

# S4 method for gpuMatrix,character norm(x, type)

# S4 method for gpuMatrix,missing norm(x, type)

# S4 method for ANY,missing norm(x, type)

# S4 method for ANY,character norm(x, type)

Value

The matrix norm, a non-negative number

Arguments

x

A gpuR matrix object

type

character string, specifying the type of matrix norm to be computed.

Author

Charles Determan Jr.

See Also