package
0.0.0-20240915062736-6f410cc57783
Repository: https://github.com/karma3labs/go-eigentrust.git
Documentation: pkg.go.dev
# Functions
Filter returns the slice elements for which the predicate evaluates true.
NewCSRMatrix creates a new compressed sparse row matrix with the given dimension and entries.
NewVector creates and returns a new sparse vector with given entries.
NilIfEmpty returns the given slice, except if empty, it returns nil.
No description provided by the author
No description provided by the author
VecDot computes the dot product of the two given sparse vectors.
# Variables
ErrDimensionMismatch signals a dimension mismatch between related data structures, ex: a local trust matrix and a pre-trust vector.
ErrZeroSum signals that an input vector's components sum to zero.
# Structs
CooEntry is a sparse matrix coordinate-format ("Coo") entry.
CSCMatrix is a compressed sparse column matrix.
CSMatrix is a compressed sparse matrix.
CSRMatrix is a compressed sparse row matrix.
Entry is an entry in a sparse vector or matrix.
KBNSummer is the Kahan-Babushka-Neumaier compensated summation algorithm.
Vector is a sparse vector.
# Type aliases
CSCEntriesSort sorts CooEntry objects by (column, row) key.
CSREntriesSort sorts CooEntry objects by (row, column) key.
No description provided by the author
No description provided by the author
Matrix is just an alias of CSRMatrix, which is the more popular of the two compressed sparse variants.