Skip to content

Commit 04e777f

Browse files
committed
Ver 0.30.9
2 parents 6750af9 + c836287 commit 04e777f

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "peroxide"
3-
version = "0.30.8"
3+
version = "0.30.9"
44
authors = ["axect <[email protected]>"]
55
edition = "2018"
66
description = "Rust comprehensive scientific computation library contains linear algebra, numerical analysis, statistics and machine learning tools with farmiliar syntax"
@@ -30,8 +30,8 @@ peroxide-ad = "0.3"
3030
#num-complex = "0.3"
3131
netcdf = { version = "0.6", optional = true, default_features = false }
3232
pyo3 = { version = "0.13", optional = true }
33-
blas = { version = "0.21", optional = true }
34-
lapack = { version = "0.17", optional = true }
33+
blas = { version = "0.22", optional = true }
34+
lapack = { version = "0.19", optional = true }
3535
serde = { version = "1.0", features = ["derive"], optional = true }
3636
json = { version = "0.12", optional = true }
3737

RELEASES.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# Release 0.30.9 (2021-05-26)
2+
3+
* Add more trigonometric ops
4+
* `asin_acos(&self) -> (Self, Self)`
5+
* `asinh_acosh(&self) -> (Self, Self)`
6+
* Update dependencies
7+
* `blas` : `0.21.0` -> `0.22.0`
8+
* `lapack` : `0.17.0` -> `0.19.0`
9+
110
# Release 0.30.8 (2021-05-21)
211

312
* Fix errata in `col_map`, `row_map`

src/traits/num.rs

+10-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ pub trait PowOps: Sized {
3838

3939
pub trait TrigOps: Sized + Div<Output = Self> {
4040
fn sin_cos(&self) -> (Self, Self);
41-
fn sinh_cosh(&self) -> (Self, Self);
4241
fn sin(&self) -> Self {
4342
let (s, _) = self.sin_cos();
4443
s
@@ -51,9 +50,7 @@ pub trait TrigOps: Sized + Div<Output = Self> {
5150
let (s, c) = self.sin_cos();
5251
s / c
5352
}
54-
fn asin(&self) -> Self;
55-
fn acos(&self) -> Self;
56-
fn atan(&self) -> Self;
53+
fn sinh_cosh(&self) -> (Self, Self);
5754
fn sinh(&self) -> Self {
5855
let (s, _) = self.sinh_cosh();
5956
s
@@ -66,9 +63,18 @@ pub trait TrigOps: Sized + Div<Output = Self> {
6663
let (s, c) = self.sinh_cosh();
6764
s / c
6865
}
66+
fn asin(&self) -> Self;
67+
fn acos(&self) -> Self;
68+
fn atan(&self) -> Self;
69+
fn asin_acos(&self) -> (Self, Self) {
70+
(self.asin(), self.acos())
71+
}
6972
fn asinh(&self) -> Self;
7073
fn acosh(&self) -> Self;
7174
fn atanh(&self) -> Self;
75+
fn asinh_acosh(&self) -> (Self, Self) {
76+
(self.asinh(), self.acosh())
77+
}
7278
}
7379

7480
pub trait ExpLogOps: Sized {

0 commit comments

Comments
 (0)