Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


rkeops (version 2.2.2)

arithmetic.divide: Division

Description

Symbolic division for LazyTensor objects or default division otherwise.

Usage

x / y

Value

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

Arguments

x, y

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

Author

Chloe Serre-Combe, Amelie Vernay

Details

If x or y is a LazyTensor, see /.LazyTensor(), else see /.default().

See Also

/.default(), /.LazyTensor(), /.ComplexLazyTensor()

Examples

Run this code
if (FALSE) {
# R base operation
+5
1 + 3
# LazyTensor symbolic division
x <- matrix(runif(150 * 3), 150, 3) # arbitrary R matrix, 150 rows, 3 columns
y <- matrix(runif(250 * 3), 250, 3) # arbitrary R matrix, 250 rows, 3 columns
x_i <- LazyTensor(x, index = 'i')   # creating LazyTensor from matrix x, 
                                    # indexed by 'i'
y_j <- LazyTensor(y, index = 'j')   # creating LazyTensor from matrix y,
                                    # indexed by 'j'
x_div_y <- x_i / y_j                # symbolic matrix
}

Run the code above in your browser using DataLab