expect_tensor_equal | R Documentation |
Adds an expectation function that can be used with the testthat package. Compares two tensors and determines whether they are equal or not.
expect_tensor_equal(object, expected, ...)
object , expected |
Computation and value to compare it to. Both arguments supports limited unquoting to make it easier to generate readable failures within a function or for loop. See quasi_label for more details. |
... |
Arguments passed on to
|
The actual value invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.