Learn R Programming

bigalgebra (version 3.0.0)

dsum: Sum of elements

Description

Sum of elements

Usage

dsum(N = NULL, X, INCX = 1L)

Value

Numeric scalar giving the sum of elements of `X`.

Arguments

N

Optional integer giving the number of elements. Defaults to `length(X)`.

X

Double-precision vector, matrix or [`bigmemory::big.matrix`] input.

INCX

Integer stride for traversing `X`.