nnmf

helper to do nnmf initialization and updates