Skip to content

Commit 768c4e8

Browse files
committed
Ver 0.38.1
2 parents cf183cf + 6f508d0 commit 768c4e8

File tree

8 files changed

+22
-17
lines changed

8 files changed

+22
-17
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "peroxide"
3-
version = "0.38.0"
3+
version = "0.38.1"
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"

RELEASES.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Release 0.38.0
1+
# Release 0.38.1 (2024-11-06)
2+
3+
- Fix error in `O3` feature
4+
5+
# Release 0.38.0 (Yanked)
26

37
## New features - Complex & Parallel
48

src/complex/matrix.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::{
1616
traits::fp::{FPMatrix, FPVector},
1717
traits::general::Algorithm,
1818
traits::math::{InnerProduct, LinearOp, MatrixProduct, Norm, Normed, Vector},
19-
traits::matrix::{Form, LinearAlgebra, MatrixTrait, SolveKind, PQLU, QR, SVD, WAZD},
19+
traits::matrix::{Form, LinearAlgebra, MatrixTrait, SolveKind, PQLU, QR, SVD, WAZD, UPLO},
2020
traits::mutable::MutMatrix,
2121
util::low_level::{copy_vec_ptr, swap_vec_ptr},
2222
util::non_macro::ConcatenateError,
@@ -879,7 +879,6 @@ pub fn complex_cbind(m1: ComplexMatrix, m2: ComplexMatrix) -> Result<ComplexMatr
879879
}
880880

881881
/// R like rbind - concatenate two complex matrix by row direction
882-
/// ```
883882
pub fn complex_rbind(m1: ComplexMatrix, m2: ComplexMatrix) -> Result<ComplexMatrix> {
884883
let mut temp = m1;
885884
if temp.shape != Shape::Row {

src/fuga/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub use crate::statistics::stat::QType::{
220220
};
221221
pub use crate::structure::ad::AD::*;
222222
pub use crate::structure::dataframe::DType::*;
223-
pub use crate::structure::matrix::UPLO::{Lower, Upper};
223+
pub use crate::traits::matrix::UPLO::{Lower, Upper};
224224
pub use crate::traits::matrix::{
225225
Form::{Diagonal, Identity},
226226
SolveKind::{LU, WAZ},

src/prelude/simpler.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ use crate::structure::dataframe::{DataFrame, WithParquet};
1111
use crate::structure::matrix::Matrix;
1212
use crate::structure::polynomial;
1313
use crate::traits::math::{Norm, Normed};
14-
use crate::traits::matrix::{Form, LinearAlgebra, MatrixTrait, SolveKind, PQLU, QR, WAZD};
14+
#[allow(unused_imports)]
15+
use crate::traits::matrix::{Form, LinearAlgebra, MatrixTrait, SolveKind, PQLU, QR, WAZD, UPLO};
1516
#[cfg(feature = "parquet")]
1617
use arrow2::io::parquet::write::CompressionOptions;
1718
#[cfg(feature = "parquet")]

src/structure/matrix.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,10 @@ use crate::traits::{
624624
fp::{FPMatrix, FPVector},
625625
general::Algorithm,
626626
math::{InnerProduct, LinearOp, MatrixProduct, Norm, Normed, Vector},
627-
matrix::{Form, LinearAlgebra, MatrixTrait, SolveKind, PQLU, QR, SVD, WAZD},
627+
matrix::{Form, LinearAlgebra, MatrixTrait, SolveKind, PQLU, QR, SVD, WAZD, UPLO},
628628
mutable::MutMatrix,
629629
};
630+
#[allow(unused_imports)]
630631
use crate::util::{
631632
low_level::{copy_vec_ptr, swap_vec_ptr},
632633
non_macro::{cbind, eye, rbind, zeros},
@@ -3538,6 +3539,7 @@ impl LinearAlgebra<Matrix> for Matrix {
35383539
Some(dgrf) => match dgrf.status {
35393540
LAPACK_STATUS::Singular => panic!("Try solve for Singluar matrix"),
35403541
LAPACK_STATUS::NonSingular => {
3542+
let b = b.to_vec();
35413543
lapack_dgetrs(&dgrf, &(b.into())).unwrap().into()
35423544
}
35433545
},
@@ -4238,13 +4240,6 @@ pub enum POSITIVE_STATUS {
42384240
Failed(i32),
42394241
}
42404242

4241-
#[allow(non_camel_case_types)]
4242-
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
4243-
pub enum UPLO {
4244-
Upper,
4245-
Lower,
4246-
}
4247-
42484243
/// Temporary data structure from `dgetrf`
42494244
#[derive(Debug, Clone)]
42504245
pub struct DGETRF {

src/structure/sparse.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
55
use crate::structure::matrix::Matrix;
66
use crate::traits::math::LinearOp;
7-
use crate::traits::matrix::{Form, LinearAlgebra, SolveKind, PQLU, QR, SVD, WAZD};
7+
#[allow(unused_imports)]
8+
use crate::traits::matrix::{Form, LinearAlgebra, SolveKind, PQLU, QR, SVD, WAZD, UPLO};
89
//use crate::traits::math::{InnerProduct, LinearOp, Norm, Normed, Vector};
9-
#[cfg(feature = "O3")]
10-
use crate::fuga::UPLO;
1110
use crate::util::non_macro::zeros;
1211
use std::ops::Mul;
1312

src/traits/matrix.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ pub enum SolveKind {
105105
WAZ,
106106
}
107107

108+
#[allow(non_camel_case_types)]
109+
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
110+
pub enum UPLO {
111+
Upper,
112+
Lower,
113+
}
114+
108115
impl<M: MatrixTrait> QR<M> {
109116
pub fn q(&self) -> &M {
110117
&self.q

0 commit comments

Comments
 (0)