arithmetic: Binary Arithmetic

Description Usage Arguments Details Value See Also Examples

Description

Binary arithmetic operations for memuse objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
## S4 method for signature 'memuse,memuse'
e1 + e2

## S4 method for signature 'memuse,numeric'
e1 + e2

## S4 method for signature 'numeric,memuse'
e1 + e2

## S4 method for signature 'memuse,object_size'
e1 + e2

## S4 method for signature 'object_size,memuse'
e1 + e2

## S4 method for signature 'memuse,memuse'
e1 - e2

## S4 method for signature 'memuse,numeric'
e1 - e2

## S4 method for signature 'numeric,memuse'
e1 - e2

## S4 method for signature 'memuse,missing'
e1 - e2

## S4 method for signature 'memuse,object_size'
e1 - e2

## S4 method for signature 'object_size,memuse'
e1 - e2

## S4 method for signature 'memuse,memuse'
e1 * e2

## S4 method for signature 'memuse,numeric'
e1 * e2

## S4 method for signature 'numeric,memuse'
e1 * e2

## S4 method for signature 'memuse,object_size'
e1 * e2

## S4 method for signature 'object_size,memuse'
e1 * e2

## S4 method for signature 'memuse,memuse'
e1 / e2

## S4 method for signature 'memuse,numeric'
e1 / e2

## S4 method for signature 'numeric,memuse'
e1 / e2

## S4 method for signature 'memuse,object_size'
e1 / e2

## S4 method for signature 'object_size,memuse'
e1 / e2

## S4 method for signature 'memuse,memuse'
e1 ^ e2

## S4 method for signature 'memuse,numeric'
e1 ^ e2

Arguments

e1, e2

memuse, numeric, or object_size objects.

Details

Simple binary arithmetic for memuse objects. Options include any combination of memuse, object_size (output from the object.size() function), and numeric objects.

Value

Returns a memuse class object.

See Also

Constructor, memuse-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
x <- mu(200)
y <- mu(100)

x+y
x-y
x*y
x/y
x^2

## End(Not run)

memuse documentation built on Feb. 17, 2020, 5:09 p.m.