powered by
Interface for optimal matrix chain multiplication
matrix_prod(..., method = "optimal")
Numeric matrices.
"optimal" order or "natural" left-to-right order.
# NOT RUN { A <- randn(20, 5) B <- randn(5, 40) C <- randn(40, 2) system.time({ matrix_prod(A, B, C, method = "optimal") }) system.time({ matrix_prod(A, B, C, method = "natural") }) # }
Run the code above in your browser using DataLab