Skip to contents

Elementwise subtraction of two sparse vectors of the same length.

Usage

sparse_sub(x, y, ...)

# S4 method for class 'sparse_numeric,sparse_numeric'
sparse_sub(x, y, ...)

Arguments

x, y

sparse_numeric objects.

...

Ignored; included for method compatibility.

Value

A sparse_numeric representing x - y.