Skip to content

Commit a16e406

Browse files
author
Ian
committed
Version upgrade to 1.0.1
- Reduced type definition usage, SVDFloat is now more concise.
1 parent ba10ac9 commit a16e406

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

Cargo.lock

Lines changed: 11 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ description = "A Rust port of LAS2 from SVDLIBC"
44
keywords = ["svd"]
55
categories = ["algorithms", "data-structures", "mathematics", "science"]
66
name = "single-svdlib"
7-
version = "1.0.0"
7+
version = "1.0.1"
88
edition = "2021"
99
license-file = "SVDLIBC-LICENSE.txt"
1010

1111
[dependencies]
1212
anyhow = "1.0.97"
13-
#argmin = { version = "0.10.0", features = ["rayon"] }
1413
nalgebra-sparse = "0.10.0"
1514
num-traits = "0.2.19"
1615
rand = "0.9.0"
@@ -19,4 +18,4 @@ rayon = "1.10.0"
1918
thiserror = "2.0.9"
2019
nshare = {version = "0.10.0", features = ["nalgebra", "ndarray"] }
2120
ndarray = "0.16.1"
22-
nalgebra = { version = "0.33.2", features = ["rayon"] }
21+
single-utilities = "0.4.0"

src/utils.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use num_traits::{Float, FromPrimitive, One, Zero};
33
use std::fmt::Debug;
44
use std::iter::Sum;
55
use std::ops::{AddAssign, MulAssign, Neg, SubAssign};
6+
use single_utilities::traits::FloatOpsTS;
67

78
pub fn determine_chunk_size(nrows: usize) -> usize {
89
let num_threads = rayon::current_num_threads();
@@ -70,18 +71,7 @@ pub struct Diagnostics<T: Float> {
7071
}
7172

7273
pub trait SvdFloat:
73-
Float
74-
+ FromPrimitive
75-
+ Debug
76-
+ Send
77-
+ Sync
78-
+ Zero
79-
+ One
80-
+ AddAssign
81-
+ SubAssign
82-
+ MulAssign
83-
+ Neg<Output = Self>
84-
+ Sum
74+
FloatOpsTS
8575
{
8676
fn eps() -> Self;
8777
fn eps34() -> Self;

0 commit comments

Comments
 (0)