Liking cljdoc? Tell your friends :D

org.soulspace.qclojure.util.test

Helper functions for testing QClojure.

Helper functions for testing QClojure.
raw docstring

approx-complex-matrix=clj

(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.
sourceraw docstring

approx-matrix=clj

(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.
sourceraw docstring

approx-vector=clj

(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.
sourceraw docstring

approx=clj

(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.
sourceraw docstring

real-partclj

(real-part x)

Extract real part from number or Vec2 complex.

Extract real part from number or Vec2 complex.
sourceraw docstring

vec2-matrix->soaclj

(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}.
sourceraw docstring

vec2?clj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close