A Flexible and Efficient Algorithmic Framework for Constrained Matrix and Tensor Factorization | Synapse