Element-wise inverse operations on numeric or complex vectors
(or objects which can be coerced to them), i.e. 1/x.
Usage
# S3 method for default
inv(x)
Value
Vector or array of inverted elements from x.
Arguments
x
numeric or complex vectors or objects which can be coerced to such,
or other objects for which methods have been written.
Author
Chloe Serre-Combe, Amelie Vernay
Details
inv(x) is equivalent to 1/x where / is the default division operator.
From base::Arithmetic: if applied to arrays the result will be an array if
this is sensible
(for example it will not if the recycling rule has been invoked).