For Deep Learning to create the matrix