nalgebra/nalgebra-sparse/src/ops/mod.rs

34 lines
581 B
Rust
Raw Normal View History

2020-12-02 23:56:22 +08:00
//! TODO
pub mod serial;
/// TODO
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum Transposition {
/// TODO
Transpose,
/// TODO
NoTranspose,
}
impl Transposition {
/// TODO
pub fn is_transpose(&self) -> bool {
self == &Self::Transpose
}
/// TODO
pub fn from_bool(transpose: bool) -> Self {
if transpose { Self::Transpose } else { Self::NoTranspose }
}
}
/// TODO
pub fn transpose() -> Transposition {
Transposition::Transpose
}
/// TODO
pub fn no_transpose() -> Transposition {
Transposition::NoTranspose
}