|
3 | 3 | use lapack::c::*;
|
4 | 4 |
|
5 | 5 | 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; |
9 | 9 | }
|
10 | 10 |
|
11 | 11 | macro_rules! impl_opnorm {
|
12 | 12 | ($scalar:ty, $lange:path) => {
|
13 | 13 | 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 { |
15 | 15 | $lange(Layout::ColumnMajor, b'o', m as i32, n as i32, &mut a, m as i32)
|
16 | 16 | }
|
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 { |
18 | 18 | $lange(Layout::ColumnMajor, b'i', m as i32, n as i32, &mut a, m as i32)
|
19 | 19 | }
|
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 { |
21 | 21 | $lange(Layout::ColumnMajor, b'f', m as i32, n as i32, &mut a, m as i32)
|
22 | 22 | }
|
23 | 23 | }
|
|
0 commit comments