Basics

tensor->ne[4]: For a matrix, ne[0] is the number cols. ne[1] is the number of rows.