Liking cljdoc? Tell your friends :D

uncomplicate.commons.core


double-fncljmacro

(double-fn f)
source

Infocljprotocol

infoclj

(info this)
(info this info-type)
source

let-releasecljmacro

(let-release bindings & body)

Binds Releasable elements to symbols (like let do), evaluates body, and, if any exception occures, releases the resources held by the bindings. The bindings can also be deeply sequential (see examples)

  • they will be released properly.

Example:

(let-release [devs (devices (first (platforms)))
              dev (first devs)
              ctx (context devs)
              queue (command-queue ctx dev)]
  (info dev)
  (info queue))
Binds Releasable elements to symbols (like let do), evaluates
body, and, if any exception occures, releases the resources held by the bindings.
The bindings can also be deeply sequential (see examples)
- they will be released properly.

Example:

    (let-release [devs (devices (first (platforms)))
                  dev (first devs)
                  ctx (context devs)
                  queue (command-queue ctx dev)]
      (info dev)
      (info queue))
sourceraw docstring

long-fncljmacro

(long-fn f)
source

Mappablecljprotocol

mmapclj

(mmap this)
(mmap this flags)

unmapclj

(unmap this mapped)
source

Releaseablecljprotocol

Objects that hold resources that can be released after use. For OpenCL objects, releasing means decrementing the reference count of the object.

The errors should be signalled by throwing an exception rather than by the return value.

Objects that hold resources that can be released after use. For OpenCL
objects, releasing  means decrementing the reference count of the object.

The errors should be signalled by throwing an exception rather than
by the return value.

releaseclj

(release this)

Releases the resource held by this.

Releases the resource held by this.
sourceraw docstring

releaseable?clj

(releaseable? this)

Checks whether this is releaseable (in terms of Releaseable protocol).

Checks whether this is releaseable (in terms of Releaseable protocol).
sourceraw docstring

Viewablecljprotocol

Attach a default dense structure to the raw data of x. x can be anything that implements Viewable, such as DirectByteBuffer.

Changes to the resulting object affect the source x, even the parts of data that might not be accessible by x. Use with caution!

view always creates a new instance that reuses the master's data, but releasing a view never releases the master data.

(view (buffer (vctr float-factory 1 2 3)))
Attach a default dense structure to the raw data of `x`. `x` can be anything that implements
Viewable, such as DirectByteBuffer.

Changes to the resulting object affect the source `x`, even the parts of data that might not
be accessible by `x`. Use with caution!

view always creates a new instance that reuses the master's data,
but releasing a view never releases the master data.

    (view (buffer (vctr float-factory 1 2 3)))

viewclj

(view this)
sourceraw docstring

with-releasecljmacro

(with-release bindings & body)

Binds Releasable elements to symbols (like let do), evaluates body, and at the end releases the resources held by the bindings. The bindings can also be deeply sequential (see examples) - they will be released properly.

Example:

(with-release [devs (devices (first (platforms)))
               dev (first devs)
               ctx (context devs)
               queue (command-queue ctx dev)]
  (info dev)
  (info queue))
Binds Releasable elements to symbols (like let do), evaluates
body, and at the end releases the resources held by the bindings. The bindings
can also be deeply sequential (see examples) - they will be released properly.

Example:

    (with-release [devs (devices (first (platforms)))
                   dev (first devs)
                   ctx (context devs)
                   queue (command-queue ctx dev)]
      (info dev)
      (info queue))
sourceraw docstring

wrap-byteclj

(wrap-byte x)
source

wrap-doubleclj

(wrap-double x)
source

wrap-floatclj

(wrap-float x)
source

wrap-intclj

(wrap-int x)
source

wrap-longclj

(wrap-long x)
source

wrap-shortclj

(wrap-short x)
source

Wrappablecljprotocol

wrapclj

(wrap this)
source

Wrappercljprotocol

extractclj

(extract this)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close