pub struct SpectralEmbedding {
pub x: Matrix,
pub y: Matrix,
pub d: Vec<f64>,
}Expand description
A spectral embedding of the vertices of a graph.
Fields§
§x: MatrixThe latent positions X (or the singular vectors U when not
scaled): one row per vertex, one column per dimension.
y: MatrixThe second half of the latent positions Y (or V), for directed
graphs; equal to x for undirected graphs.
d: Vec<f64>The eigenvalues (undirected) or singular values (directed) used; empty for graphs without edges.
Trait Implementations§
Source§impl Clone for SpectralEmbedding
impl Clone for SpectralEmbedding
Source§fn clone(&self) -> SpectralEmbedding
fn clone(&self) -> SpectralEmbedding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpectralEmbedding
impl Debug for SpectralEmbedding
Source§impl PartialEq for SpectralEmbedding
impl PartialEq for SpectralEmbedding
Source§fn eq(&self, other: &SpectralEmbedding) -> bool
fn eq(&self, other: &SpectralEmbedding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpectralEmbedding
Auto Trait Implementations§
impl Freeze for SpectralEmbedding
impl RefUnwindSafe for SpectralEmbedding
impl Send for SpectralEmbedding
impl Sync for SpectralEmbedding
impl Unpin for SpectralEmbedding
impl UnsafeUnpin for SpectralEmbedding
impl UnwindSafe for SpectralEmbedding
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