This is the cl-slice Reference Manual, version 0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 04:27:50 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-slice
DSL for array slices in Common Lisp.
Tamas K Papp <tkpapp@gmail.com>
MIT
0.1
alexandria
(system).
anaphora
(system).
let-plus
(system).
cl-slice-dev.lisp
(file).
cl-slice.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-slice/cl-slice-dev.lisp
cl-slice
(system).
all-singleton-representations?
(function).
axis-dimension
(generic function).
canonical-range
(function).
canonical-range
(structure).
canonical-representation
(generic function).
canonical-representations
(function).
canonical-sequence
(function).
canonical-sequence
(structure).
canonical-singleton
(function).
representation-dimensions
(function).
row-major-setup
(function).
singleton-representation?
(function).
slice-reserved-symbol?
(function).
traverse-representations
(macro).
canonical-range-end
(reader).
(setf canonical-range-end)
(writer).
canonical-range-p
(function).
canonical-range-start
(reader).
(setf canonical-range-start)
(writer).
canonical-sequence-p
(function).
canonical-sequence-vector
(reader).
(setf canonical-sequence-vector)
(writer).
copy-canonical-range
(function).
copy-canonical-sequence
(function).
make-canonical-range
(function).
make-canonical-sequence
(function).
representation-dimension
(function).
representation-initial-value
(function).
representation-iterator
(function).
cl-slice/cl-slice.lisp
cl-slice-dev.lisp
(file).
cl-slice
(system).
aslice
(macro).
canonical-representation
(method).
canonical-representation
(method).
head
(function).
including
(function).
including
(structure).
mask
(generic function).
nodrop
(function).
nodrop
(structure).
ref
(generic function).
(setf ref)
(generic function).
slice
(generic function).
(setf slice)
(generic function).
tail
(function).
which
(generic function).
copy-including
(function).
copy-nodrop
(function).
including-end
(reader).
(setf including-end)
(writer).
including-p
(function).
including-start
(reader).
(setf including-start)
(writer).
make-including
(function).
make-nodrop
(function).
nodrop-index
(reader).
(setf nodrop-index)
(writer).
nodrop-p
(function).
Packages are listed by definition order.
cl-slice
alexandria
.
anaphora
.
cl-slice-dev
.
common-lisp
.
let-plus
.
copy-including
(function).
copy-nodrop
(function).
including-end
(reader).
(setf including-end)
(writer).
including-p
(function).
including-start
(reader).
(setf including-start)
(writer).
make-including
(function).
make-nodrop
(function).
nodrop-index
(reader).
(setf nodrop-index)
(writer).
nodrop-p
(function).
cl-slice-dev
alexandria
.
anaphora
.
common-lisp
.
let-plus
.
all-singleton-representations?
(function).
axis-dimension
(generic function).
canonical-range
(function).
canonical-range
(structure).
canonical-representation
(generic function).
canonical-representations
(function).
canonical-sequence
(function).
canonical-sequence
(structure).
canonical-singleton
(function).
representation-dimensions
(function).
row-major-setup
(function).
singleton-representation?
(function).
slice-reserved-symbol?
(function).
traverse-representations
(macro).
canonical-range-end
(reader).
(setf canonical-range-end)
(writer).
canonical-range-p
(function).
canonical-range-start
(reader).
(setf canonical-range-start)
(writer).
canonical-sequence-p
(function).
canonical-sequence-vector
(reader).
(setf canonical-sequence-vector)
(writer).
copy-canonical-range
(function).
copy-canonical-sequence
(function).
make-canonical-range
(function).
make-canonical-sequence
(function).
representation-dimension
(function).
representation-initial-value
(function).
representation-iterator
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Anaphoric macro version of SLICE that binds the first argument to IT.
A macro for traversing representations. Loops over all possible subscripts in REPRESENTAITONS, making them available in SUBSCRIPS during the execution of BODY. The iterator is constructed using the function SETUP (see for example ROW-MAJOR-SETUP). When INDEX is given, a variable with that name is provided, containing an index that counts iterations.
Test if all canonical representations are singletons.
Canonical representation of a contiguous set of array indices from START (inclusive) to END (exclusive).
Return the canonical representations of SLICES given the corresponding AXES, checking for matching length.
Canonical representation of array indexes from sequence. May share structure. Vectors of the upgraded type of (SIMPLE-ARRAY ARRAY-INDEX (*)) are preferred for efficiency, otherwise they are coerced.
Canonical representation of a singleton index (a nonnegative integer, which is a valid array index).
First COUNT indexes.
Range, including both ends.
Slice a single index, but don’t drop a dimension.
Return a list for the dimensions of canonical representations, dropping singletons.
Return SUBSCRIPTS (a list) and ITERATOR (a closure, no arguments) that increments the contents of SUBSCRIPTS. TERMINATOR is called when all subscripts have been visited.
Test if a canonical REPRESENTATION is a singleton.
Test if SYMBOL has special semantics for SLICE.
Last COUNT indexes.
Return the dimension of axis. Needs to be defined for non-integer axes.
Canonical representation of SLICE, given information in AXIS. The default methods just use dimensions as AXIS.
Each slice needs to be resolved into a canonical representation, which is either a singleton, a range, or a sequence of subscripts. They should only be constructed with the corresponding CANONICAL-SINGLETION, CANONICAL-RANGE and CANONICAL-SEQUENCE functions.
CANONICAL-REPRESENTATION needs to ensure that the represented subscripts are valid for the axis.
Unless a specialized method is found, the dimension of the axis is queried with AXIS-DIMENSION and resolution is attempted using the latter. It recommended that methods that resolve symbols test them with SLICE-RESERVED-SYMBOL? and use CALL-NEXT-METHOD.
canonical-range
)) ¶canonical-sequence
)) ¶integer
) (slice null
)) ¶integer
) (slice integer
)) ¶cons
)) ¶vector
)) ¶integer
) (slice (eql t)
)) ¶bit-vector
)) ¶Map sequence into a simple-bit-vector, using 1 when PREDICATE yields true, 0 otherwise.
sequence
)) ¶Return the element of OBJECT specified by SUBSCRIPTS.
array
) &rest subscripts) ¶array
) &rest subscripts) ¶Return the slice of OBJECT specified by SLICES.
Return an index of the positions in SEQUENCE which satisfy PREDICATE.
sequence
)) ¶Canonical representation of a contiguous set of array indices from START (inclusive) to END (exclusive).
Canonical representation of a sequence of array indexes.
structure-object
.
common-lisp
.
(simple-array alexandria:array-index (*))
Range, including both ends.
Select a single index, but don’t drop a dimension.
structure-object
.
end
.
end
.
Return the dimension of a canonical-representation, or NIL for singleton slices (they are dropped).
Initial value for iteration.
Return a closure that sets the car of CONS to the next value each time it is called, resetting and calling CARRY when it reaches the end of its range.
Jump to: | (
A C F G H I M N R S T W |
---|
Jump to: | (
A C F G H I M N R S T W |
---|
Jump to: | E I S V |
---|
Jump to: | E I S V |
---|
Jump to: | C F I N P S |
---|
Jump to: | C F I N P S |
---|