Machine Learning Optimization Algorithms On Matrix