RUN (&OPTIONAL INTERACTIVE?)
Run all the tests for LLA.
ARRAY= (ARRAY1 ARRAY2)
Test that arrays are equal and have the same element type.
Generate the list of all LLA (source target) pairs for which coercible? holds. For internal use only, NOT EXPORTED.
COERCIBLE? (SOURCE-TYPE TARGET-TYPE)
Permitted coercions for internal LLA types. It is guaranteed that CL:COERCE can perform these coercions on the corresponding lisp types. Basic summary: (1) integers can be coerced to anything, (2) single<->double precision coercions are possible both ways, (3) real floats can be upgraded to complex.
Separate real and complex elements in a vector and stack them consecutively.
Returns the mean of SAMPLE. SAMPLE must be a sequence of numbers.
Returns median of SAMPLE. SAMPLE must be a sequence of real numbers.
RANDOM-ARRAY (TYPE &REST DIMENSIONS)
Random array for testing.
SAME-MEMORY-CONTENTS2? (POINTER INTERNAL-TYPE VALUES)
Like SAME-MEMORY-CONTENTS?, with autoconversion of values and calculation of INTERNAL-TYPE.
SAME-MEMORY-CONTENTS? (POINTER CFFI-TYPE VALUES)
Check that the contents of the memory (of CFFI-TYPE) at POINTER is the same as VALUES. VALUES should be flattened if complex.
TEST-PINNING-COPY (SOURCE-TYPE DESTINATION-TYPE &KEY (LENGTH 50))
Test array pinning (copy requested). The memory is modified, compared again, and the original vector is checked to ensure that it remains constant.
TEST-PINNING-OUTPUT (SOURCE-TYPE DESTINATION-TYPE &KEY (LENGTH 50))
Test array pinning (with output). Procedure is similar to test-pinning-copy, except that the output is also checked.
TEST-PINNING-READONLY (SOURCE-TYPE DESTINATION-TYPE &KEY (LENGTH 50))
Test array pinning (input only).
VARIANCE (SAMPLE &KEY (BIASED T))
Variance of SAMPLE. Returns the biased variance if BIASED is true (the default), and the unbiased estimator of variance if BIASED is false. SAMPLE must be a sequence of numbers.
SLOPPY-RANDOM-ARRAY (TYPE HEIGHT WIDTH)
SUBMATRIX (MATRIX HEIGHT WIDTH)
TEST-VECTOR-OUTPUT (INTERNAL-TYPE &KEY (LENGTH 50))
WITH-FOREIGN-TEMPORARY-BUFFER ((POINTER SIZE) &BODY BODY)
Allocate a buffer for SIZE complex doubles.