#matrix #nalgebra #factorization #non-negative #allocation #update #rule

nnmf_nalgebra

Non-negative matrix factorization using nalgebra

1 unstable release

0.1.0 Feb 21, 2023

#6 in #non-negative

Download history 8/week @ 2024-09-23 111/week @ 2024-10-14

111 downloads per month

MIT/Apache

9KB
152 lines

Non-negative Matrix Factorization (with nalgebra)

docs.rs crates.io

Takes a matrix V of size R*C, splits it into two smaller matricies W (R*K) and H (K*C) such that W * V approximates V.

  • Uses multiplicative update rule
  • Generic over allocation strategy, matrix size, and scalar type.
  • Doesn't do allocation in the loop :)
  • 195 lines of code!
  • PRs welcome!

Dependencies

~5.5MB
~108K SLoC