FIXME
parse_extra_args(formula, args)
a list with different information about formula input arguments: a list with different information about formula input arguments:
vector of text string, corresponding type of formula
arguments (among Vi
, Vj
, Pm
).
vector of integer, corresponding arguments positions.
vector of integer, corresponding arguments dimensions.
text string, an operator formula (see Details).
vector of text string, formula input arguments (see Details).
Ghislain Durif
Parse the formula for string such as
"YY(<pos>,<dim>)"
where YY
can be a formula input argument type
(Vi
, Vj
or Pm
), <pos>
is the position of the corresponding input
argument, and <dim>
its inner dimension.
"Var(<pos>,<dim>,<type>)"
where <pos>
and <dim>
are the position and
inner dimension (c.f. previous point) and <type>
is an integer encoding
the formula input argument type with the following relation:
|---------|-------------------------|-----------|
| keyword | meaning | type |
|---------|-------------------------|-----------|
| Vi
| variable indexed by i
| 0
|
| Vj
| variable indexed by j
| 1
|
| Pm
| parameter | 2
|
|---------|-------------------------|-----------|