Skip to content

nnmf

Nonnegative Matrix Factorization

v1.1 · Feb 3, 2026 · GPL (>= 2)

Description

Nonnegative matrix factorization (NMF) is a technique to factorize a matrix with nonnegative values into the product of two matrices. Covariates are also allowed. Parallel computing is an option to enhance the speed and high-dimensional and large scale (and/or sparse) data are allowed. Relevant papers include: Wang Y. X. and Zhang Y. J. (2012). Nonnegative matrix factorization: A comprehensive review. IEEE Transactions on Knowledge and Data Engineering, 25(6), 1336-1353 <doi:10.1109/TKDE.2012.51> and Kim H. and Park H. (2008). Nonnegative matrix factorization based on alternating nonnegativity constrained least squares and active set method. SIAM Journal on Matrix Analysis and Applications, 30(2), 713-730 <doi:10.1137/07069239X>.

Downloads

225

Last 30 days

14484th

225

Last 90 days

225

Last year

CRAN Check Status

2 ERROR
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang ERROR
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang ERROR
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (14 non-OK)
ERROR r-devel-linux-x86_64-debian-clang

package dependencies

Package required but not available: ‘Rfast2’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK r-devel-linux-x86_64-debian-gcc

*


            
ERROR r-devel-linux-x86_64-fedora-clang

examples

Running examples in ‘nnmf-Ex.R’ failed
The error most likely occurred in:

> ### Name: nmfqp.reg
> ### Title: NMF with covariates minimizing the Frobenius norm
> ### Aliases: nmfqp.reg
> 
> ### ** Examples
> 
> x <- as.matrix(iris[, 1:3])
> z <- model.matrix(x ~., data = iris[, 4:5])[, -1]
> mod <- nmfqp.reg(x, z, 2)
Error in quadprog::solve.QP(Dmat, dvec, dk, b0k) : 
  constraints are inconsistent, no solution!
Calls: nmfqp.reg -> <Anonymous>
Execution halted
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
OK r-oldrel-macos-arm64

*


            
OK r-oldrel-macos-x86_64

*


            
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Mar 9, 2026
ERROR r-devel-linux-x86_64-debian-clang

package dependencies

Package required but not available: ‘Rfast2’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
ERROR r-devel-linux-x86_64-fedora-clang

examples

Running examples in ‘nnmf-Ex.R’ failed
The error most likely occurred in:

> ### Name: nmfqp.reg
> ### Title: NMF with covariates minimizing the Frobenius norm
> ### Aliases: nmfqp.reg
> 
> ### ** Examples
> 
> x <- as.matrix(iris[, 1:3])
> z <- model.matrix(x ~., data = iris[, 4:5])[, -1]
> mod <- nmfqp.reg(x, z, 2)
Error in quadprog::solve.QP(Dmat, dvec, dk, b0k) : 
  constraints are inconsistent, no solution!
Calls: nmfqp.reg -> <Anonymous>
Execution halted

Dependency Network

Dependencies Reverse dependencies ClusterR Matrix osqp quadprog Rfast Rfast2 Rglpk sparcl nnmf

Version History

new 1.1 Mar 9, 2026