x
, using MAGMA for GPUs or PLASMA
for multi-core CPUs.
The norm can be the one norm, the infinity norm, the Frobenius norm,
or the maximum modulus among elements of a matrix, as determined by
the value of type
. Not all norms are supported by MAGMA or PLASMA and
these are documented below.
"norm"(x, type, ...)
"norm"(x, type, ...)
"norm"(x, type, ...)
"norm"(x, type, ...)
"norm"(x, type, ...)
"O"
, "o"
or "1"
"I"
or "i"
"F"
or "f"
x
treated as if it were a vector); This is not
supported in PLASMA versions < 2.4.6 or in MAGMA.
"M"
or "m"
x
. This is not supported in MAGMA for
dgeMatrix, but is for symmetric matrices dpoMatrix
and dsyMatrix
.
The default is "O"
. Only the first character of
type[1]
is used.
"norm"
, representing the quantity
chosen according to type
.
magmablas_dlange
for dgeMatrix
is called
or magmablas_dlansy
is used for symmetric dsyMatrix
or dpoMatrix
.
When the multi-core library PLASMA is used PLASMA_dlange
and PLASMA_dlansy
are used for the respective matrix types mentioned previously.
x <- Hilbert(9)
norm(x, "1")
norm(x, "I")
norm(x, "F")
norm(x, "M")
Run the code above in your browser using DataLab