warp.expect\_near ================= .. currentmodule:: warp._src.lang .. function:: expect_near(a: Float, b: Float, tolerance: Float = 1e-06) -> None .. wp-function-tags:: :kernel: true :python: true :differentiable: false Print an error to stdout if ``a`` and ``b`` differ by more than ``tolerance``. Compare scalar values. .. function:: expect_near(a: Vector[Float, Any], b: Vector[Float, Any], tolerance: Float = 1e-06) -> None :noindex: .. wp-function-tags:: :kernel: true :python: true :differentiable: false Print an error to stdout if ``a`` and ``b`` differ by more than ``tolerance``. Compare each vector element. .. function:: expect_near(a: Quaternion[Float], b: Quaternion[Float], tolerance: Float = 1e-06) -> None :noindex: .. wp-function-tags:: :kernel: true :python: true :differentiable: false Print an error to stdout if ``a`` and ``b`` differ by more than ``tolerance``. Compare each quaternion component. .. function:: expect_near(a: Matrix[Float, Any, Any], b: Matrix[Float, Any, Any], tolerance: Float = 1e-06) -> None :noindex: .. wp-function-tags:: :kernel: true :python: true :differentiable: false Print an error to stdout if ``a`` and ``b`` differ by more than ``tolerance``. Compare each matrix element.