pub struct ProdMatrix<R> {
pub semiring: R,
pub n: usize,
}Expand description
行列の乗法
Fields§
§semiring: R行列の要素の環
n: usize行列の大きさ
Implementations§
Source§impl<R> ProdMatrix<R>
impl<R> ProdMatrix<R>
Sourcepub fn new(semiring: R, n: usize) -> Self
pub fn new(semiring: R, n: usize) -> Self
ProdMatrixを返す。
Trait Implementations§
Source§impl<R: Semiring + Clone + PartialEq> BinaryOp for ProdMatrix<R>
impl<R: Semiring + Clone + PartialEq> BinaryOp for ProdMatrix<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: Clone> Clone for ProdMatrix<R>
impl<R: Clone> Clone for ProdMatrix<R>
Source§fn clone(&self) -> ProdMatrix<R>
fn clone(&self) -> ProdMatrix<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R: Debug> Debug for ProdMatrix<R>
impl<R: Debug> Debug for ProdMatrix<R>
Source§impl<R: Hash> Hash for ProdMatrix<R>
impl<R: Hash> Hash for ProdMatrix<R>
Source§impl<R: PartialEq> PartialEq for ProdMatrix<R>
impl<R: PartialEq> PartialEq for ProdMatrix<R>
Source§impl<R: Semiring + Clone + PartialEq> Set for ProdMatrix<R>
impl<R: Semiring + Clone + PartialEq> Set for ProdMatrix<R>
Source§type Element = MatrixOnSemiring<R>
type Element = MatrixOnSemiring<R>
集合の元
impl<R: Semiring + Clone + PartialEq> Associative for ProdMatrix<R>
impl<R: Copy> Copy for ProdMatrix<R>
impl<R: Eq> Eq for ProdMatrix<R>
impl<R: Semiring + Clone + PartialEq> Multiplicative for ProdMatrix<R>
impl<R> StructuralPartialEq for ProdMatrix<R>
Auto Trait Implementations§
impl<R> Freeze for ProdMatrix<R>where
R: Freeze,
impl<R> RefUnwindSafe for ProdMatrix<R>where
R: RefUnwindSafe,
impl<R> Send for ProdMatrix<R>where
R: Send,
impl<R> Sync for ProdMatrix<R>where
R: Sync,
impl<R> Unpin for ProdMatrix<R>where
R: Unpin,
impl<R> UnwindSafe for ProdMatrix<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