Skip to content

Commit 11cfab5

Browse files
committed
Revert opnorm change
1 parent 69b89fc commit 11cfab5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/impls/opnorm.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
use lapack::c::*;
44

55
pub trait ImplOpNorm: Sized {
6-
fn opnorm_1(m: usize, n: usize, a: &[Self]) -> Self;
7-
fn opnorm_i(m: usize, n: usize, a: &[Self]) -> Self;
8-
fn opnorm_f(m: usize, n: usize, a: &[Self]) -> Self;
6+
fn opnorm_1(m: usize, n: usize, a: Vec<Self>) -> Self;
7+
fn opnorm_i(m: usize, n: usize, a: Vec<Self>) -> Self;
8+
fn opnorm_f(m: usize, n: usize, a: Vec<Self>) -> Self;
99
}
1010

1111
macro_rules! impl_opnorm {
1212
($scalar:ty, $lange:path) => {
1313
impl ImplOpNorm for $scalar {
14-
fn opnorm_1(m: usize, n: usize, mut a: &[Self]) -> Self {
14+
fn opnorm_1(m: usize, n: usize, mut a: Vec<Self>) -> Self {
1515
$lange(Layout::ColumnMajor, b'o', m as i32, n as i32, &mut a, m as i32)
1616
}
17-
fn opnorm_i(m: usize, n: usize, mut a: &[Self]) -> Self {
17+
fn opnorm_i(m: usize, n: usize, mut a: Vec<Self>) -> Self {
1818
$lange(Layout::ColumnMajor, b'i', m as i32, n as i32, &mut a, m as i32)
1919
}
20-
fn opnorm_f(m: usize, n: usize, mut a: &[Self]) -> Self {
20+
fn opnorm_f(m: usize, n: usize, mut a: Vec<Self>) -> Self {
2121
$lange(Layout::ColumnMajor, b'f', m as i32, n as i32, &mut a, m as i32)
2222
}
2323
}

0 commit comments

Comments
 (0)