Symbolic element-wise arc-cosine operation for LazyTensor
objects or standard element-wise arc-cosine operation otherwise.
Arguments
- x
input for
acos.default()oracos.LazyTensor().
Value
See value of acos.default() or
acos.LazyTensor().
Details
If x is a LazyTensor, see acos.LazyTensor(), else
see acos.default().
Examples
if (FALSE) {
# R base operation
acos(0)
acos(-1)
# LazyTensor symbolic element-wise arc-cosine
x <- matrix(runif(150 * 3), 150, 3) # arbitrary R matrix, 150 rows, 3 columns
x_i <- LazyTensor(x, index = 'i') # creating LazyTensor from matrix x,
# indexed by 'i'
Acos_x <- acos(x_i) # symbolic matrix, 150 rows and 3 columns
}