Skip to content

Commit c997e8d

Browse files
committed
Add LapackScalar
1 parent 6923d72 commit c997e8d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/impl2/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11

22
pub mod opnorm;
3+
pub use self::opnorm::*;
4+
5+
pub trait LapackScalar: OperatorNorm_ {}
6+
impl<A> LapackScalar for A where A: OperatorNorm_ {}

src/impl2/opnorm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub enum NormType {
1212
Frobenius = b'f',
1313
}
1414

15-
pub trait OperatorNorm: Sized {
15+
pub trait OperatorNorm_: Sized {
1616
type Output;
1717

1818
fn opnorm(NormType, Layout, &[Self]) -> Self::Output;
@@ -32,7 +32,7 @@ pub trait OperatorNorm: Sized {
3232

3333
macro_rules! impl_opnorm {
3434
($scalar:ty, $output:ty, $lange:path) => {
35-
impl OperatorNorm for $scalar {
35+
impl OperatorNorm_ for $scalar {
3636
type Output = $output;
3737
fn opnorm(t: NormType, l: Layout, a: &[Self]) -> Self::Output {
3838
let (m, n) = l.ffi_size();

0 commit comments

Comments
 (0)