R: Binary Arithmetic

Arithmetic {memuse} | R Documentation

## Binary Arithmetic

### Description

Binary arithmetic operations for `memuse` objects.

### Usage

    ## 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

    ## Not run:
    x <- mu(200)
    y <- mu(100)

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

    ## End(Not run)

[Package memuse version 4.1-0 Index]