Skip to contents

Symbolic element-wise arc-cosine operation for LazyTensor objects or standard element-wise arc-cosine operation otherwise.

Usage

acos(x)

Arguments

x

input for acos.default() or acos.LazyTensor().

Value

See value of acos.default() or acos.LazyTensor().

Details

If x is a LazyTensor, see acos.LazyTensor(), else see acos.default().

Author

Chloe Serre-Combe, Amelie Vernay

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
}