The Matrix Hilbert Space and Its Application to Matrix Learning