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

nnmf_nalgebra

Non-negative matrix factorization using nalgebra

1 unstable release

0.1.0 Feb 21, 2023

#6 in #non-negative

24 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

~4MB
~82K SLoC