Cols

行列の列数を返します

ulong matrix::Cols()

戻り値

Integer.

 

matrix m= {{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}};
m.Reshape(3, 4);
Print("matrix m \n" , m);
Print("m.Cols()=", m.Cols());
Print("m.Rows()=", m.Rows());
 
 /*
  matrix m
  [[1,2,3,4]
   [5,6,7,8]
   [9,10,11,12]]
  m.Cols()=4
  m.Rows()=3
 */