pub struct SumMatrix<R> {
pub semiring: R,
pub h: usize,
pub w: usize,
}Expand description
行列の加法
Fields§
§semiring: R行列の要素の環
h: usize行数
w: usize列数
Implementations§
Trait Implementations§
Source§impl<R: Semiring + Clone + PartialEq> BinaryOp for SumMatrix<R>
impl<R: Semiring + Clone + PartialEq> BinaryOp for SumMatrix<R>
Source§fn op_assign_r(&self, a: &mut Self::Element, b: Self::Element)
fn op_assign_r(&self, a: &mut Self::Element, b: Self::Element)
二項演算$\circ$で(右側から)代入操作($a \leftarrow a \circ b$)をする。
Source§impl<R: Semiring + Clone + PartialEq> Set for SumMatrix<R>
impl<R: Semiring + Clone + PartialEq> Set for SumMatrix<R>
Source§type Element = MatrixOnSemiring<R>
type Element = MatrixOnSemiring<R>
集合の元
impl<R: Semiring + Clone + PartialEq> Associative for SumMatrix<R>
impl<R: Semiring + Clone + PartialEq> Commutative for SumMatrix<R>
impl<R: Copy> Copy for SumMatrix<R>
impl<R: Eq> Eq for SumMatrix<R>
impl<R> StructuralPartialEq for SumMatrix<R>
Auto Trait Implementations§
impl<R> Freeze for SumMatrix<R>where
R: Freeze,
impl<R> RefUnwindSafe for SumMatrix<R>where
R: RefUnwindSafe,
impl<R> Send for SumMatrix<R>where
R: Send,
impl<R> Sync for SumMatrix<R>where
R: Sync,
impl<R> Unpin for SumMatrix<R>where
R: Unpin,
impl<R> UnwindSafe for SumMatrix<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more