(add-fn-suffix type sym)Takes a type and symbol that is a name of the function and adds a suffix to it
Takes a type and symbol that is a name of the function and adds a suffix to it
(extend-types types & forms)Collects forms of methods that will be attached to deftype
Collects forms of methods that will be attached to deftype
(form-replaces extra-parts type)Takes specialization map and returns a map with symbols with hashes as keys
Takes specialization map and returns a map with symbols with hashes as keys
(handle-defn-form t replaces [_ fn-name & _ :as form])Special treating for defn -- we need to define specialized versions of provided function with different names
Special treating for defn -- we need to define specialized versions of provided function with different names
(handle-forms type replaces form)Specializing forms recursively
Specializing forms recursively
(handle-symbol type replaces sym)Takes a symbol and possibly replace it, saving meta and making all substitutions to it
Takes a symbol and possibly replace it, saving meta and making all substitutions to it
(init types)Initializes specialization map (see ndarray namespace for details)
Initializes specialization map (see `ndarray` namespace for details)
(special-macro? macro)This predicate returns true if provided symbol is a name of 'special' macro that should be expanded during the specialization. This is needed because usually macroexpansion is done from the outside, so if 'magic' variables are used in macros that occur in specialized code, they will need to be explicitly expanded before specialization. Therefore all such macros should be listed here
This predicate returns true if provided symbol is a name of 'special' macro that should be expanded during the specialization. This is needed because usually macroexpansion is done from the outside, so if 'magic' variables are used in macros that occur in specialized code, they will need to be explicitly expanded before specialization. Therefore all such macros should be listed here
(specialize type & body)Allows use of the 'magic' machinery from outside of ndarray namespace. This
is useful for loop-over. An example can be found in
test-ndarray-implementation namespace
Allows use of the 'magic' machinery from outside of `ndarray` namespace. This is useful for `loop-over`. An example can be found in `test-ndarray-implementation` namespace
(spit-code)Emits specialized versions of collected forms
Emits specialized versions of collected forms
(with-magic types form)(with-magic types extra-parts form)Macro for collecting forms for specialization. See ndarray namespace for
details
Macro for collecting forms for specialization. See `ndarray` namespace for details
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |