We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97b6018 commit 69b89fcCopy full SHA for 69b89fc
src/error.rs
@@ -9,6 +9,7 @@ pub enum LinalgError {
9
NotSquare(NotSquareError),
10
Lapack(LapackError),
11
Stride(StrideError),
12
+ MemoryCont(MemoryContError),
13
Shape(ShapeError),
14
}
15
@@ -70,3 +71,18 @@ impl error::Error for StrideError {
70
71
"invalid stride"
72
73
74
+
75
+#[derive(Debug)]
76
+pub struct MemoryContError {}
77
78
+impl fmt::Display for MemoryContError {
79
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
80
+ write!(f, "Memory is not contiguous")
81
+ }
82
+}
83
84
+impl error::Error for MemoryContError {
85
+ fn description(&self) -> &str {
86
+ "Memory is not contiguous"
87
88
0 commit comments