ff_arithmetic: Arithmetic Operators for ff vectors

Description Usage Arguments Value

Description

These binary operators perform arithmetic on numeric ff vectors. Arith family:

The operators require either x or y to be an ff_vector or both. In case either x or y is not an ff_vector, the other object needs to be of length 1. Recycling is not implemented.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## S3 method for class 'ff_vector'
 x + y

## S3 method for class 'ff_vector'
 x - y

## S3 method for class 'ff_vector'
 x * y

## S3 method for class 'ff_vector'
 x / y

## S3 method for class 'ff_vector'
 x ^ y

## S3 method for class 'ff_vector'
 x %% y

## S3 method for class 'ff_vector'
 x %/% y

Arguments

x

either a numeric ff_vector or a vector of length 1 in RAM in which case y should be an ff_vector

y

either a numeric ff_vector or a vector of length 1 in RAM in which case x should be an ff_vector

Value

an ff_vector. For the definition of the operators see the base package of R.


ffbase documentation built on Feb. 27, 2021, 5:06 p.m.