Skip to content

Commit 6ee6009

Browse files
committed
Implement a StochasticRounding codec (#30)
* Implement the stochastic rounding codec * Bump MSRV to 1.86
1 parent ebcbb0c commit 6ee6009

File tree

63 files changed

+493
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+493
-61
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
matrix:
5454
os: [ubuntu-latest]
55-
rust: ["1.85", stable, nightly]
55+
rust: ["1.86", stable, nightly]
5656
lock: ["Cargo.lock", "Cargo.lock.min"]
5757
runs-on: ${{ matrix.os }}
5858
needs: lock
@@ -172,7 +172,7 @@ jobs:
172172
strategy:
173173
matrix:
174174
os: [ubuntu-latest]
175-
rust: ["1.85", stable]
175+
rust: ["1.86", stable]
176176
lock: ["Cargo.lock", "Cargo.lock.min"]
177177
runs-on: ${{ matrix.os }}
178178
needs: lock

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ members = [
2424
"codecs/reinterpret",
2525
"codecs/round",
2626
"codecs/sperr",
27+
"codecs/stochastic-rounding",
2728
"codecs/swizzle-reshape",
2829
"codecs/sz3",
2930
"codecs/tthresh",
@@ -39,7 +40,7 @@ edition = "2024"
3940
authors = ["Juniper Tyree <juniper.tyree@helsinki.fi>"]
4041
repository = "https://github.com/juntyr/numcodecs-rs"
4142
license = "MPL-2.0"
42-
rust-version = "1.85"
43+
rust-version = "1.86"
4344

4445
[workspace.dependencies]
4546
# workspace-internal numcodecs crates
@@ -66,6 +67,7 @@ numcodecs-pco = { version = "0.2", path = "codecs/pco", default-features = false
6667
numcodecs-random-projection = { version = "0.3", path = "codecs/random-projection", default-features = false }
6768
numcodecs-reinterpret = { version = "0.3", path = "codecs/reinterpret", default-features = false }
6869
numcodecs-round = { version = "0.3", path = "codecs/round", default-features = false }
70+
numcodecs-stochastic-rounding = { version = "0.1", path = "codecs/stochastic-rounding", default-features = false }
6971
numcodecs-swizzle-reshape = { version = "0.3", path = "codecs/swizzle-reshape", default-features = false }
7072
numcodecs-sz3 = { version = "0.6", path = "codecs/sz3", default-features = false }
7173
numcodecs-tthresh = { version = "0.2", path = "codecs/tthresh", default-features = false }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[CI Status]: https://img.shields.io/github/actions/workflow/status/juntyr/numcodecs-rs/ci.yml?branch=main
44
[workflow]: https://github.com/juntyr/numcodecs-rs/actions/workflows/ci.yml?query=branch%3Amain
55

6-
[MSRV]: https://img.shields.io/badge/MSRV-1.85.0-blue
6+
[MSRV]: https://img.shields.io/badge/MSRV-1.86.0-blue
77
[repo]: https://github.com/juntyr/numcodecs-rs
88

99
[Latest Version]: https://img.shields.io/crates/v/numcodecs

codecs/asinh/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[CI Status]: https://img.shields.io/github/actions/workflow/status/juntyr/numcodecs-rs/ci.yml?branch=main
44
[workflow]: https://github.com/juntyr/numcodecs-rs/actions/workflows/ci.yml?query=branch%3Amain
55

6-
[MSRV]: https://img.shields.io/badge/MSRV-1.85.0-blue
6+
[MSRV]: https://img.shields.io/badge/MSRV-1.86.0-blue
77
[repo]: https://github.com/juntyr/numcodecs-rs
88

99
[Latest Version]: https://img.shields.io/crates/v/numcodecs-asinh

codecs/asinh/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! [CI Status]: https://img.shields.io/github/actions/workflow/status/juntyr/numcodecs-rs/ci.yml?branch=main
44
//! [workflow]: https://github.com/juntyr/numcodecs-rs/actions/workflows/ci.yml?query=branch%3Amain
55
//!
6-
//! [MSRV]: https://img.shields.io/badge/MSRV-1.85.0-blue
6+
//! [MSRV]: https://img.shields.io/badge/MSRV-1.86.0-blue
77
//! [repo]: https://github.com/juntyr/numcodecs-rs
88
//!
99
//! [Latest Version]: https://img.shields.io/crates/v/numcodecs-asinh

codecs/bit-round/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[CI Status]: https://img.shields.io/github/actions/workflow/status/juntyr/numcodecs-rs/ci.yml?branch=main
44
[workflow]: https://github.com/juntyr/numcodecs-rs/actions/workflows/ci.yml?query=branch%3Amain
55

6-
[MSRV]: https://img.shields.io/badge/MSRV-1.85.0-blue
6+
[MSRV]: https://img.shields.io/badge/MSRV-1.86.0-blue
77
[repo]: https://github.com/juntyr/numcodecs-rs
88

99
[Latest Version]: https://img.shields.io/crates/v/numcodecs-bit-round

codecs/bit-round/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! [CI Status]: https://img.shields.io/github/actions/workflow/status/juntyr/numcodecs-rs/ci.yml?branch=main
44
//! [workflow]: https://github.com/juntyr/numcodecs-rs/actions/workflows/ci.yml?query=branch%3Amain
55
//!
6-
//! [MSRV]: https://img.shields.io/badge/MSRV-1.85.0-blue
6+
//! [MSRV]: https://img.shields.io/badge/MSRV-1.86.0-blue
77
//! [repo]: https://github.com/juntyr/numcodecs-rs
88
//!
99
//! [Latest Version]: https://img.shields.io/crates/v/numcodecs-bit-round

codecs/fixed-offset-scale/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[CI Status]: https://img.shields.io/github/actions/workflow/status/juntyr/numcodecs-rs/ci.yml?branch=main
44
[workflow]: https://github.com/juntyr/numcodecs-rs/actions/workflows/ci.yml?query=branch%3Amain
55

6-
[MSRV]: https://img.shields.io/badge/MSRV-1.85.0-blue
6+
[MSRV]: https://img.shields.io/badge/MSRV-1.86.0-blue
77
[repo]: https://github.com/juntyr/numcodecs-rs
88

99
[Latest Version]: https://img.shields.io/crates/v/numcodecs-fixed-offset-scale

codecs/fixed-offset-scale/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! [CI Status]: https://img.shields.io/github/actions/workflow/status/juntyr/numcodecs-rs/ci.yml?branch=main
44
//! [workflow]: https://github.com/juntyr/numcodecs-rs/actions/workflows/ci.yml?query=branch%3Amain
55
//!
6-
//! [MSRV]: https://img.shields.io/badge/MSRV-1.85.0-blue
6+
//! [MSRV]: https://img.shields.io/badge/MSRV-1.86.0-blue
77
//! [repo]: https://github.com/juntyr/numcodecs-rs
88
//!
99
//! [Latest Version]: https://img.shields.io/crates/v/numcodecs-fixed-offset-scale

codecs/fourier-network/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[CI Status]: https://img.shields.io/github/actions/workflow/status/juntyr/numcodecs-rs/ci.yml?branch=main
44
[workflow]: https://github.com/juntyr/numcodecs-rs/actions/workflows/ci.yml?query=branch%3Amain
55

6-
[MSRV]: https://img.shields.io/badge/MSRV-1.85.0-blue
6+
[MSRV]: https://img.shields.io/badge/MSRV-1.86.0-blue
77
[repo]: https://github.com/juntyr/numcodecs-rs
88

99
[Latest Version]: https://img.shields.io/crates/v/numcodecs-fourier-network

0 commit comments

Comments
 (0)