Regularization Techniques for Learning with Matrices