How is it possible to create a list of {x,y} points as the following one:
list={{1,1},{1,2},...,{1,100},{2,1},{2,2},...,{2,100},...,{100,1},{100,2},...,{100,100}}
Thanks
Tuples[Range[100], 2]
or using Table
as mentioned in the comment
It is worth noting that the method relying on Tuples
is 10-12 times faster than Table
Table[{i,j}, {i, 100}, {j, 100}]
? What have you tried? $\endgroup$Flatten
the result; considerFlatten[Table[{i, j}, {i, 1, 100}, {j, 100}], 1]
. More in general, also take a look at the proposed duplicate. $\endgroup$Join @@ Array[List , {100, 100} ]
$\endgroup$