Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the cl-libpuzzle Reference Manual, version 0.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 12:29:09 2020 GMT+0.
• Introduction | What cl-libpuzzle 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 |
libpuzzle binding for Common Lisp
cl-libpuzzle provides libpuzzle FFI interface.
Provide macro interface for easy use.
(with-context-cvecs ctx (cv1 cv2)
(puzzle-fill-cvec-from-file ctx cv1 "/path/to/your/file1")
(puzzle-fill-cvec-from-file ctx cv2 "/path/to/your/file2")
(puzzle-vector-normalized-distance ctx cv1 cv2 1))
=>
(CFFI:WITH-FOREIGN-OBJECTS ((CTX 'CL-LIBPUZZLE::PUZZLE-CONTEXT)
(CV1 'CL-LIBPUZZLE::PUZZLE-CVEC)
(CV2 'CL-LIBPUZZLE::PUZZLE-CVEC))
(UNWIND-PROTECT
(PROGN
(PUZZLE-INIT-CONTEXT CTX)
(PUZZLE-INIT-CVEC CTX CV1)
(PUZZLE-INIT-CVEC CTX CV2)
(PUZZLE-FILL-CVEC-FROM-FILE CTX CV1
"/path/to/your/file1")
(PUZZLE-FILL-CVEC-FROM-FILE CTX CV2
"/path/to/your/file2")
(PUZZLE-VECTOR-NORMALIZED-DISTANCE CTX CV1 CV2 1))
(PUZZLE-FREE-CVEC CTX CV1)
(PUZZLE-FREE-CVEC CTX CV2)
(PUZZLE-FREE-CONTEXT CTX)))
Copyright (c) 2013 Masato Sogame (poketo7878@gmail.com)
Next: Modules, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The cl-libpuzzle system |
Masato Sogame
LLGPL
libpuzzle(http://www.pureftpd.org/project/libpuzzle) binding for Common Lisp
# Cl-Libpuzzle
libpuzzle binding for Common Lisp
## Usage
cl-libpuzzle provides libpuzzle FFI interface.
### Extra
Provide macro interface for easy use.
(with-context-cvecs ctx (cv1 cv2)
(puzzle-fill-cvec-from-file ctx cv1 "/path/to/your/file1")
(puzzle-fill-cvec-from-file ctx cv2 "/path/to/your/file2")
(puzzle-vector-normalized-distance ctx cv1 cv2 1))
=>
(CFFI:WITH-FOREIGN-OBJECTS ((CTX ’CL-LIBPUZZLE::PUZZLE-CONTEXT)
(CV1 ’CL-LIBPUZZLE::PUZZLE-CVEC)
(CV2 ’CL-LIBPUZZLE::PUZZLE-CVEC))
(UNWIND-PROTECT
(PROGN
(PUZZLE-INIT-CONTEXT CTX)
(PUZZLE-INIT-CVEC CTX CV1)
(PUZZLE-INIT-CVEC CTX CV2)
(PUZZLE-FILL-CVEC-FROM-FILE CTX CV1
"/path/to/your/file1")
(PUZZLE-FILL-CVEC-FROM-FILE CTX CV2
"/path/to/your/file2")
(PUZZLE-VECTOR-NORMALIZED-DISTANCE CTX CV1 CV2 1))
(PUZZLE-FREE-CVEC CTX CV1)
(PUZZLE-FREE-CVEC CTX CV2)
(PUZZLE-FREE-CONTEXT CTX)))
## Author
* Masato Sogame (poketo7878@gmail.com)
## Copyright
Copyright (c) 2013 Masato Sogame (poketo7878@gmail.com)
0.1
cffi
cl-libpuzzle.asd (file)
src (module)
Modules are listed depth-first from the system components tree.
• The cl-libpuzzle/src module |
cl-libpuzzle (system)
src/
cl-libpuzzle.lisp (file)
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The cl-libpuzzle.asd file | ||
• The cl-libpuzzle/src/cl-libpuzzle.lisp file |
Next: The cl-libpuzzle/src/cl-libpuzzle․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
cl-libpuzzle.asd
cl-libpuzzle (system)
Previous: The cl-libpuzzle․asd file, Up: Lisp files [Contents][Index]
src (module)
src/cl-libpuzzle.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The cl-libpuzzle-asd package | ||
• The cl-libpuzzle package |
Next: The cl-libpuzzle package, Previous: Packages, Up: Packages [Contents][Index]
cl-libpuzzle.asd
Previous: The cl-libpuzzle-asd package, Up: Packages [Contents][Index]
cl-libpuzzle.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 special variables | ||
• Exported macros | ||
• Exported functions |
Next: Exported macros, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
Next: Exported functions, Previous: Exported special variables, Up: Exported definitions [Contents][Index]
cl-libpuzzle.lisp (file)
Previous: Exported macros, Up: Exported definitions [Contents][Index]
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal generic functions | ||
• Internal conditions | ||
• Internal classes |
Next: Internal conditions, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
cl-libpuzzle.lisp (file)
Next: Internal classes, Previous: Internal generic functions, Up: Internal definitions [Contents][Index]
cl-libpuzzle.lisp (file)
condition (condition)
puzzle-error-code (method)
:puzzle-code
puzzle-error-code (generic function)
Previous: Internal conditions, Up: Internal definitions [Contents][Index]
cl-libpuzzle.lisp (file)
enhanced-foreign-type (class)
translate-from-foreign (method)
Initarg | Value |
---|---|
:actual-type | (quote (:int)) |
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.lisp (file)
cl-libpuzzle.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: | C F L M |
---|
Jump to: | C F L M |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | F G M P W |
---|
Jump to: | F G M P W |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | $
*
S |
---|
Jump to: | $
*
S |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C P S |
---|
Jump to: | C P S |
---|