pub enum ConnectionMatrix {
Dense(DenseMatrix),
Sparse(SparseMatrix),
Mmap(MmapMatrix),
}Expand description
연접 비용 행렬을 위한 통합 타입
다양한 행렬 구현을 하나의 타입으로 사용할 수 있습니다.
Variants§
Implementations§
Source§impl ConnectionMatrix
impl ConnectionMatrix
Sourcepub fn from_def_file<P>(path: P) -> Result<ConnectionMatrix, DictError>
pub fn from_def_file<P>(path: P) -> Result<ConnectionMatrix, DictError>
Sourcepub fn from_bin_file<P>(path: P) -> Result<ConnectionMatrix, DictError>
pub fn from_bin_file<P>(path: P) -> Result<ConnectionMatrix, DictError>
Sourcepub fn from_mmap_file<P>(path: P) -> Result<ConnectionMatrix, DictError>
pub fn from_mmap_file<P>(path: P) -> Result<ConnectionMatrix, DictError>
Sourcepub fn from_compressed_file<P>(path: P) -> Result<ConnectionMatrix, DictError>
pub fn from_compressed_file<P>(path: P) -> Result<ConnectionMatrix, DictError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnectionMatrix
impl RefUnwindSafe for ConnectionMatrix
impl Send for ConnectionMatrix
impl Sync for ConnectionMatrix
impl Unpin for ConnectionMatrix
impl UnsafeUnpin for ConnectionMatrix
impl UnwindSafe for ConnectionMatrix
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
Source§impl<T> ConnectionCost for Twhere
T: Matrix,
impl<T> ConnectionCost for Twhere
T: Matrix,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more