Add matrix form to maxwell

This commit is contained in:
2020-09-15 17:42:12 +02:00
parent d2c6d6af6c
commit 52ca29a51c
3 changed files with 169 additions and 107 deletions

View File

@@ -114,6 +114,12 @@ impl Metrics {
detj_deta_dy,
})
}
pub fn nx(&self) -> usize {
self.detj.shape()[1]
}
pub fn ny(&self) -> usize {
self.detj.shape()[0]
}
}
impl Metrics {