mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-19 22:50:01 +00:00
Reorganize type aliases for matrix types: move to appropriate location for clarity
This commit is contained in:
parent
9b96dad956
commit
2ff4a99346
@ -297,11 +297,6 @@ impl_elementwise_op!(Sub, sub, -);
|
|||||||
impl_elementwise_op!(Mul, mul, *);
|
impl_elementwise_op!(Mul, mul, *);
|
||||||
impl_elementwise_op!(Div, div, /);
|
impl_elementwise_op!(Div, div, /);
|
||||||
|
|
||||||
pub type FloatMatrix = Matrix<f64>;
|
|
||||||
pub type BoolMatrix = Matrix<bool>;
|
|
||||||
pub type IntMatrix = Matrix<i32>;
|
|
||||||
pub type StringMatrix = Matrix<String>;
|
|
||||||
|
|
||||||
/// Generates element-wise bitwise operations for boolean matrices.
|
/// Generates element-wise bitwise operations for boolean matrices.
|
||||||
macro_rules! impl_bitwise_op {
|
macro_rules! impl_bitwise_op {
|
||||||
($OpTrait:ident, $method:ident, $op:tt) => {
|
($OpTrait:ident, $method:ident, $op:tt) => {
|
||||||
@ -345,6 +340,10 @@ impl Not for Matrix<bool> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub type FloatMatrix = Matrix<f64>;
|
||||||
|
pub type BoolMatrix = Matrix<bool>;
|
||||||
|
pub type IntMatrix = Matrix<i32>;
|
||||||
|
pub type StringMatrix = Matrix<String>;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user