fix: Update ndarray version
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ nalgebra-bindings = ["nalgebra"]
|
|||||||
datasets = []
|
datasets = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ndarray = { version = "0.13", optional = true }
|
ndarray = { version = "0.14", optional = true }
|
||||||
nalgebra = { version = "0.23.0", optional = true }
|
nalgebra = { version = "0.23.0", optional = true }
|
||||||
num-traits = "0.2.12"
|
num-traits = "0.2.12"
|
||||||
num = "0.3.0"
|
num = "0.3.0"
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ use std::ops::Range;
|
|||||||
use std::ops::SubAssign;
|
use std::ops::SubAssign;
|
||||||
|
|
||||||
use ndarray::ScalarOperand;
|
use ndarray::ScalarOperand;
|
||||||
use ndarray::{s, stack, Array, ArrayBase, Axis, Ix1, Ix2, OwnedRepr};
|
use ndarray::{concatenate, s, Array, ArrayBase, Axis, Ix1, Ix2, OwnedRepr};
|
||||||
|
|
||||||
use crate::linalg::cholesky::CholeskyDecomposableMatrix;
|
use crate::linalg::cholesky::CholeskyDecomposableMatrix;
|
||||||
use crate::linalg::evd::EVDDecomposableMatrix;
|
use crate::linalg::evd::EVDDecomposableMatrix;
|
||||||
@@ -246,11 +246,11 @@ impl<T: RealNumber + ScalarOperand + AddAssign + SubAssign + MulAssign + DivAssi
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn h_stack(&self, other: &Self) -> Self {
|
fn h_stack(&self, other: &Self) -> Self {
|
||||||
stack(Axis(1), &[self.view(), other.view()]).unwrap()
|
concatenate(Axis(1), &[self.view(), other.view()]).unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn v_stack(&self, other: &Self) -> Self {
|
fn v_stack(&self, other: &Self) -> Self {
|
||||||
stack(Axis(0), &[self.view(), other.view()]).unwrap()
|
concatenate(Axis(0), &[self.view(), other.view()]).unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn matmul(&self, other: &Self) -> Self {
|
fn matmul(&self, other: &Self) -> Self {
|
||||||
|
|||||||
Reference in New Issue
Block a user