warp.expect_near#

warp.expect_near(
a: Float,
b: Float,
tolerance: Float,
) None#
  • Kernel

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

Compare scalar values.

warp.expect_near(
a: Vector[Any, Float],
b: Vector[Any, Float],
tolerance: Float,
) None
  • Kernel

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,
) None
  • Kernel

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

Compare each quaternion component.

warp.expect_near(
a: Matrix[Any, Any, Float],
b: Matrix[Any, Any, Float],
tolerance: Float,
) None
  • Kernel

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

Compare each matrix element.