warp.expect_near#

warp.expect_near(
a: Float,
b: Float,
tolerance: Float = 1e-06,
) None#
  • Kernel: true
  • Python: true
  • Differentiable: false

Print an error to stdout if a and b differ by more than tolerance.

Compare scalar values.

warp.expect_near(
a: Vector[Float, Any],
b: Vector[Float, Any],
tolerance: Float = 1e-06,
) None
  • Kernel: true
  • Python: true
  • Differentiable: false

Print an error to stdout if a and b differ by more than tolerance.

Compare each vector element.

warp.expect_near(
a: Quaternion[Float],
b: Quaternion[Float],
tolerance: Float = 1e-06,
) None
  • Kernel: true
  • Python: true
  • Differentiable: false

Print an error to stdout if a and b differ by more than tolerance.

Compare each quaternion component.

warp.expect_near(
a: Matrix[Float, Any, Any],
b: Matrix[Float, Any, Any],
tolerance: Float = 1e-06,
) None
  • Kernel: true
  • Python: true
  • Differentiable: false

Print an error to stdout if a and b differ by more than tolerance.

Compare each matrix element.