rthnorm: Parallel Vector Norm

Description Usage Arguments Details Value Examples

View source: R/rthnorm.R

Description

Compuetes the norm of a vector

Usage

1
rthnorm(x, p = 2, nthreads = rth.nthreads())

Arguments

x

a numeric vector

p

type of norm to compute

nthreads

An optional argument for specifying the number of threads (in the case of OpenMP or TBB backends) that the routine should (at most) use. Does nothing with a CUDA backend. See nthreads.

Details

Computes the norm of a vector similar to norm()

Value

Norm of a vector

Examples

1
2
3
4
5
6
## Not run: 
x <- c(5,2,12,13,8,0,50)
x
rthnorm(x)

## End(Not run)

matloff/Rth documentation built on May 21, 2019, 12:55 p.m.