raml-algebra: Natural subsetting for indicies

Description Usage Arguments Examples

Description

Natural subsetting for indicies

Algebra within the raml ecosystem behaves exactly as you'd expect it to.

Totally redundent, but suppresses warnings when two variables are compared.

Totally redundent, but suppresses warnings when two variables are compared.

Totally redundent, but suppresses warnings when two variables are compared.

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
69
70
71
72
73
74
## S4 method for signature 'ramlArray'
x[i, j, ..., drop = TRUE]

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

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

## S4 method for signature 'ramlVariable,ramlVariable'
e1 + e2

## S4 method for signature 'ramlVariable,AffineExpr'
e1 + e2

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

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

## S4 method for signature 'AffineExpr,ramlVariable'
e1 + e2

## S4 method for signature 'AffineExpr,AffineExpr'
e1 + e2

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

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

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

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

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

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

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

## S4 method for signature 'ANY,AbstractRamlAlgObject'
e1 >= e2

## S4 method for signature 'ANY,AbstractRamlAlgObject'
e1 <= e2

## S4 method for signature 'ANY,AbstractRamlAlgObject'
e1 == e2

## S4 method for signature 'AbstractRamlAlgObject,ANY'
e1 >= e2

## S4 method for signature 'AbstractRamlAlgObject,ANY'
e1 <= e2

## S4 method for signature 'AbstractRamlAlgObject,ANY'
e1 == e2

## S4 method for signature 'AbstractRamlAlgObject,AbstractRamlAlgObject'
e1 == e2

## S4 method for signature 'AbstractRamlAlgObject,AbstractRamlAlgObject'
e1 <= e2

## S4 method for signature 'AbstractRamlAlgObject,AbstractRamlAlgObject'
e1 >= e2

Arguments

x

The object of "ramlArray" to be subsetted.

i

The first index.

j

The second index (if needed).

...

Additional indicies.

drop

(Not used).

e1

The first algebraic object.

e2

The second algebraic object.

Examples

1
2
3
4
5
6
7
8
m <- Model()
m$var(x)
m$var(y)
x + x == 2 * x
x - x == 0 * x
x + y + x == x + x + y
m$objective(x + y)
m$constraint(x + 2 * y <= 3)

jlepird/raml documentation built on May 19, 2019, 12:46 p.m.