Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the listoflist Reference Manual, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 14:16:32 2020 GMT+0.
• Introduction | What listoflist is all about | |
• Systems | The systems documentation | |
• Modules | The modules documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
* Overview The LISTOFLIST package (depends on xarray) contains functions and methods for handling list-of-lists as array substitutes as well as conversions between the two data structures. The general API is that of XARRAY, but we have added a few convenience functions, as well. This is part of the core suite of Common Lisp Statistics System (CLS) packages. * Tasks to do Originally the following was in the TODO.lisp file. #+name: Header #+begin_src lisp :tangle "TODO.lisp" ;;; -*- mode: lisp -*- ;;; Time-stamp: <2012-10-06 09:16:41 tony> ;;; Creation: <2009-12-10 08:10:39 tony> ;;; File: TODO.lisp ;;; Author: AJ Rossini;;; Copyright: (c)2009--, AJ Rossini. See file LICENSE.mit in ;;; top-level directory for information. ;;; Purpose: development support and short-term memory. ;;; What is this talk of 'release'? Klingons do not make software ;;; 'releases'. Our software 'escapes', leaving a bloody trail of ;;; designers and quality assurance people in its wake. ;;; This organization and structure is new to the 21st Century ;;; version.. Think, "21st Century Schizoid Man". #+end_src * Initialization #+NAME LoadingLOL #+BEGIN_SRC lisp :tangle "TODO.lisp" (in-package :cl-user) (asdf:oos 'asdf:compile-op :listoflist :force t) ;; (asdf:oos 'asdf:load-op :listoflist) ;; (ql:quicklisp :listoflist) #+END_SRC * Snips to repair and solve ** Unit tests #+NAME UnitTestExec #+BEGIN_SRC lisp :tangle "TODO.lisp" (in-package :listoflist-unittests) ;; (describe (run-tests :suite 'lol-ut)) ;; only from commandline (run-tests :suite 'lol-ut) #+END_SRC #+RESULTS: : # ** Example Use #+NAME Examples #+BEGIN_SRC lisp :tangle "TODO.lisp" (in-package :lol-user) (listoflistp '((0d0 1d0 2d0 3d0) (10d0 11d0 12d0 13d0))) (listoflistp (list (list 0d0 1d0 2d0 3d0) (list 10d0 11d0 12d0 13d0))) #+END_SRC * Discussion
Next: Modules, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The listoflist system |
AJ Rossini
MIT
makes listoflist an xarray’able data structure.
listoflist.asd (file)
Modules are listed depth-first from the system components tree.
• The listoflist/src module | ||
• The listoflist/unittest module |
Next: The listoflist/unittest module, Previous: Modules, Up: Modules [Contents][Index]
listoflist (system)
src/
Previous: The listoflist/src module, Up: Modules [Contents][Index]
src (module)
listoflist (system)
src/
unittests.lisp (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The listoflist.asd file | ||
• The listoflist/src/package.lisp file | ||
• The listoflist/src/listoflist.lisp file | ||
• The listoflist/unittest/unittests.lisp file |
Next: The listoflist/src/package․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
listoflist.asd
listoflist (system)
Next: The listoflist/src/listoflist․lisp file, Previous: The listoflist․asd file, Up: Lisp files [Contents][Index]
src (module)
src/package.lisp
Next: The listoflist/unittest/unittests․lisp file, Previous: The listoflist/src/package․lisp file, Up: Lisp files [Contents][Index]
package.lisp (file)
src (module)
src/listoflist.lisp
Previous: The listoflist/src/listoflist․lisp file, Up: Lisp files [Contents][Index]
unittest (module)
src/unittests.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The listoflist-asd package | ||
• The listoflist package | ||
• The listoflist-user package | ||
• The listoflist-unittests package |
Next: The listoflist package, Previous: Packages, Up: Packages [Contents][Index]
listoflist.asd
Next: The listoflist-user package, Previous: The listoflist-asd package, Up: Packages [Contents][Index]
XARRAY support for list-of-list data structures.
package.lisp (file)
lol
Next: The listoflist-unittests package, Previous: The listoflist package, Up: Packages [Contents][Index]
verification, sandbox, and illustration package for LISTOFLIST.
package.lisp (file)
lol-user
Previous: The listoflist-user package, Up: Packages [Contents][Index]
unit-testing structure for LISTOFLIST using LIFT.
package.lisp (file)
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported functions |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
FIXME: This function, when written, should walk through 2 listoflists and return T/nil based on equality.
listoflist.lisp (file)
From a listoflists structure, make an array.
FIXME: need to verify that the listoflists is a valid structure (same
size rows, typing if required, etc.
<example>
(defparameter *mdfl-test*
(list (list ’a 1 2.1)
(list ’b 2 1.1)
(list ’c 1 2.0)
(list ’d 2 3.0)))
(length *mdfl-test*)
(length (elt *mdfl-test* 0))
(defparameter *mdfl-test-dt* (make-datatable-from-listoflists *mdfl-test*))
(array-dimensions *mdfl-test-dt*)
</example>
listoflist.lisp (file)
Test for conformance of structure: list whose sublists are of the
same size (if ragged is T, then just test that list has elements of
type list).
FIXME: should have a flag to verify equivalence of types in case needed to map to a RHO:DATA-FRAME.
listoflist.lisp (file)
Take a list of list, and verify that the sublists are all of the same size. returns size-of-sublist if all sublists same size, otherwise nil
listoflist.lisp (file)
This function does the moral-equivalent of a matrix transpose on a
rectangular list-of-lists data structure.
Assumes listoflist is rectangular, need to see what happens if ragged (or at least check). Could use the listoflistp predicate to confirm.
listoflist.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal functions |
Previous: Internal definitions, Up: Internal definitions [Contents][Index]
FIXME: need to write this.
listoflist.lisp (file)
Return a (simple-array element-type dimensions) containing elements, coerced to element-type, where the elemen-type is obtained using numeric-type-classifier.
listoflist.lisp (file)
Return a (simple-array element-type dimensions) containing elements, coerced to element-type.
listoflist.lisp (file)
Return a (simple-array element-type (*)) containing elements, coerced to element-type, where the elemen-type is obtained using numeric-type-classifier.
listoflist.lisp (file)
Fills array with elements from list, coerced to the appropriate type. No error checking, meant to be used internally. Return array.
listoflist.lisp (file)
We assume row-major, that is each sublist denotes a row, and columns are formed by taking the jth element from each list to form the jth column
listoflist.lisp (file)
Check if the lengths of the lists are equal (T, otherwise NIL), to justify further processing and initial conditions.
listoflist.lisp (file)
Numeric type classifier, finds the smallest subtype that can accomodate the elements of list, in the ordering fixnum < integer < float < complex < t. Rational, float (any kind) are classified as double-float, and complex numbers as (complex double-float). Meant to be used by simple array-constructing functions. Upgraded-array-element-type is called on end result.
listoflist.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L M |
---|
Jump to: | F L M |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | A C E F L N S T |
---|
Jump to: | A C E F L N S T |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | L P S |
---|
Jump to: | L P S |
---|