[GAP Forum] An elementary question about matrices

Laurent Bartholdi laurent.bartholdi at gmail.com
Thu Nov 15 14:32:14 GMT 2007


Dear Josef,
There is one:
gap> A := List([1..10],i->List([1..10],j->10*i+j));
[ [ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], [ 21, 22, 23, 24, 25,
26, 27, 28, 29, 30 ], [ 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 ],
  [ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50 ], [ 51, 52, 53, 54, 55,
56, 57, 58, 59, 60 ], [ 61, 62, 63, 64, 65, 66, 67, 68, 69, 70 ],
  [ 71, 72, 73, 74, 75, 76, 77, 78, 79, 80 ], [ 81, 82, 83, 84, 85,
86, 87, 88, 89, 90 ], [ 91, 92, 93, 94, 95, 96, 97, 98, 99, 100 ],
  [ 101, 102, 103, 104, 105, 106, 107, 108, 109, 110 ] ]
gap> S := [2,4,6];
[ 2, 4, 6 ]
gap> T := [3,5,7];
[ 3, 5, 7 ]
gap> A{S}{T};
[ [ 23, 25, 27 ], [ 43, 45, 47 ], [ 63, 65, 67 ] ]

-- 
Laurent Bartholdi          \  laurent.bartholdi<at>gmail<dot>com
EPFL SB SMA IMB MAD         \    Téléphone: +41 21-6935458
Station 8                    \ Secrétaire: +41 21-6935471
CH-1015 Lausanne, Switzerland \      Fax: +41 21-6930339



More information about the Forum mailing list