ANN is working with row_major matrices