Helper functions for testing QClojure.
Helper functions for testing QClojure.
(approx-complex-matrix= A B)
(approx-complex-matrix= A B tolerance)
Check if two complex matrices are approximately equal. Handles both SoA format {:real A :imag B} and Vec2 matrix format.
Check if two complex matrices are approximately equal. Handles both SoA format {:real A :imag B} and Vec2 matrix format.
(approx-matrix= A B)
(approx-matrix= A B tolerance)
Check if two matrices (or vectors) are approximately equal, handling Vec2 elements.
Check if two matrices (or vectors) are approximately equal, handling Vec2 elements.
(approx-vector= A B)
(approx-vector= A B tolerance)
Check if two vectors are approximately equal, handling Vec2 elements.
Check if two vectors are approximately equal, handling Vec2 elements.
(approx= a b)
(approx= a b tolerance)
Check if two numbers are approximately equal within tolerance. Handles FastMath Vec2 complex numbers and regular numbers.
Check if two numbers are approximately equal within tolerance. Handles FastMath Vec2 complex numbers and regular numbers.
(real-part x)
Extract real part from number or Vec2 complex.
Extract real part from number or Vec2 complex.
(vec2-matrix->soa matrix)
Convert a matrix with Vec2 elements to SoA format {:real A :imag B}.
Convert a matrix with Vec2 elements to SoA format {:real A :imag B}.
(vec2? x)
Check if x is a Vec2 object by examining its string representation.
Check if x is a Vec2 object by examining its string representation.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |