powered by
Applies the square root to each entry of `X` in place, supporting both base R and [`bigmemory::big.matrix`] inputs.
dsqrt(N = NULL, X, INCX = 1L)
Invisibly returns the modified object `X`.
Optional integer giving the number of elements. Defaults to `length(X)`.
Double-precision vector, matrix or [`bigmemory::big.matrix`] input.
Integer stride for traversing `X`.
vals <- matrix(c(1, 4, 9, 16), 2) dsqrt(X = vals) vals
Run the code above in your browser using DataLab