JVM-AOT gradient capabilities for vector-parameter Raster densities. This adapter emits typed wrappers and delegates differentiation/compilation to Raster. It owns no model semantics, compiler pass, binder or cache.
JVM-AOT gradient capabilities for vector-parameter Raster densities. This adapter emits typed wrappers and delegates differentiation/compilation to Raster. It owns no model semantics, compiler pass, binder or cache.
(aot-block description density {:keys [args]} compiled)Adapt a compiled [value, gradient...] array to Foerster block capabilities.
args is the caller's existing (theta, inputs)->arguments function. The
density and gradient operate in the coordinates declared by description;
Foerster owns constrained transforms and their Jacobians.
Adapt a compiled [value, gradient...] array to Foerster block capabilities. `args` is the caller's existing (theta, inputs)->arguments function. The density and gradient operate in the coordinates declared by description; Foerster owns constrained transforms and their Jacobians.
(compile-gradient density source & {:as options})Compile a density whose first argument is a flat double[] parameter vector.
source supplies typed :arguments and :dimension. Optional :scalar-source
{:args ... :body ...} supplies the equivalent density with scalar parameters
followed by the same data arguments. :parameter-layout selects :auto, :scalar
or :array; remaining options pass directly to Raster compile-aot.
Returns a callable producing double[value, gradient coordinates ...].
Compile a density whose first argument is a flat double[] parameter vector.
`source` supplies typed :arguments and :dimension. Optional :scalar-source
{:args ... :body ...} supplies the equivalent density with scalar parameters
followed by the same data arguments. :parameter-layout selects :auto, :scalar
or :array; remaining options pass directly to Raster compile-aot.
Returns a callable producing double[value, gradient coordinates ...].(parameter-layout source)(parameter-layout {:keys [arguments dimension scalar-source]} requested)Choose scalar AD only for a supplied scalar source within the qualified 18-argument boundary. The vector-parameter public interface is unchanged.
Choose scalar AD only for a supplied scalar source within the qualified 18-argument boundary. The vector-parameter public interface is unchanged.
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 |