tech.datatype icon indicating copy to clipboard operation
tech.datatype copied to clipboard

Efficient numerics for the jvm

tech.datatype

Clojars Project

  • This library has been superceded by dtype-next in order to provide:
    • Smaller runtime footprint + lower require times.
    • Fewer dependencies.
    • Graal Native support.

tech.datatype is a Clojure library for efficient N-dimensional numerics across a range of primitive datatypes and a range of container types.

As examples of what you may do, here are some colorized tensors built from the US NOAA HRRR and GFS models.

Morning Temps Noon Temps
morning noon
  • For a quick feel of the library, please check out our cheatsheet
  • Those images were generated by colorizing tensors
  • Check out our docs on buffered images
  • Brand new - datetime support
  • APL-style game of life

A nice (slightly out of date) post explaining more is here.

Generalized efficient manipulations of sequences of primitive datatype. Includes specializations for java arrays, array views (subsection of an array) and nio buffers. There are specializations to allow implementations to provide efficient full typed copy functions when the types can be ascertained.

Generic operations include:

  1. datatype of this sequence
  2. Writing to, reading from
  3. Construction
  4. Efficient mutable copy into a container.
  5. Sparse buffer support
  6. n-dimensional tensor support
  7. Functional math support

Design documenation is here.

Useful Unit Tests To See

  • basic operations
  • unsigned operations
  • game of life
  • sparse game of life

License

Copyright © 2019 TechAscent, LLC.

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.