Symbolic element-wise sine operation for LazyTensor
objects or standard element-wise sine operation otherwise.
Arguments
- x
input for
sin.default()
orsin.LazyTensor()
.
Value
See value of sin.default()
or
sin.LazyTensor()
.
Details
If x
is a LazyTensor
, see sin.LazyTensor()
, else
see sin.default()
.
Examples
if (FALSE) {
# R base operation
sin(0)
sin(pi)
# LazyTensor symbolic element-wise sine
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'
Sin_x <- sin(x_i) # symbolic matrix, 150 rows and 3 columns
}