Skip to content

Commit

Permalink
Release 10.122
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuernber committed Nov 16, 2024
1 parent 0b6c930 commit b2a4af7
Show file tree
Hide file tree
Showing 39 changed files with 47 additions and 45 deletions.
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:exec-fn codox.main/-main
:exec-args {:group-id "cnuernber"
:artifact-id "dtype-next"
:version "10.121"
:version "10.122"
:name "DType Next"
:description "High Performance Clojure Primitives"
:metadata {:doc/format :markdown}
Expand Down
2 changes: 1 addition & 1 deletion docs/buffered-image.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/cheatsheet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/datatype-to-dtype-next.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dimensions-bytecode-gen.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/overview.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.argops.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.bitmap.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.convolve.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.datetime.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.errors.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.ffi.clang.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.ffi.graalvm.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.ffi.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.ffi.size-t.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.functional.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.gradient.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.list.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.mmap-writer.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.mmap.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.native-buffer.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.nippy.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.packing.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.reductions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.rolling.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.sampling.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.statistics.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.struct.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.datatype.wavelet.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.libs.buffered-image.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.parallel.for.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.parallel.queue-iter.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.tensor.color-gradients.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.tensor.dimensions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/tech.v3.tensor.html

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions src/tech/v3/datatype/datetime/packing.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@

(set! *warn-on-reflection* true)

(packing/add-packed-datatype! Instant :instant :packed-instant :int64
(packing/add-packed-datatype! Instant :instant :packed-milli-instant :int64
#(if %
(dt-base/instant->microseconds-since-epoch %)
(dt-base/instant->milliseconds-since-epoch %)
Long/MIN_VALUE)
(fn [^long data]
(when-not (== data Long/MIN_VALUE)
(dt-base/microseconds-since-epoch->instant data))))
(dt-base/milliseconds-since-epoch->instant data))))

(packing/add-packed-datatype! Instant :instant :packed-milli-instant :int64

(packing/add-packed-datatype! Instant :instant :packed-instant :int64
#(if %
(dt-base/instant->milliseconds-since-epoch %)
(dt-base/instant->microseconds-since-epoch %)
Long/MIN_VALUE)
(fn [^long data]
(when-not (== data Long/MIN_VALUE)
(dt-base/milliseconds-since-epoch->instant data))))
(dt-base/microseconds-since-epoch->instant data))))


(packing/add-packed-datatype! LocalDate :local-date :packed-local-date :int32
Expand Down
3 changes: 2 additions & 1 deletion test/tech/v3/datatype/datetime_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[tech.v3.datatype.datetime :as dtype-dt]
[tech.v3.datatype.datetime.operations :as dtype-dt-ops]
[tech.v3.datatype :as dtype]
[tech.v3.datatype.functional :as dfn])
[tech.v3.datatype.functional :as dfn]
[tech.v3.datatype.packing :as packing])
(:import [java.time ZoneId]))


Expand Down

0 comments on commit b2a4af7

Please sign in to comment.