chickadee » sparse-vectors » sparse-vector-info

sparse-vector-info SPARSE-VECTORprocedure

Returns the sparse-vector tree representation node (count, depth & size.

  • Example:
(define (sparse-vector-efficiency sv)
  (let-values (((nodcnt nodht nodsiz) (sparse-vector-info sv)))
    (exact->inexact (/ (sparse-vector-count sv) (* nodcnt nodsiz))) ) )