 |
|
List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] Matrix and filling it up
| [MUG] Matrix and filling it up |
|
Author: Caroline Ibrahim
Posted: Wed, 23 Oct 2002 11:43:14 -0400
|
>> From: Caroline Ibrahim "cibrah"
Hello all,
Another question of efficiency.
I want to create this huge matrix (say 1048576 by 5) and fill it up with
0, 1, 2 and 3 in an ordered manner. For example the first column of the
matrix will have 262144 zeros, then 262144 ones,then 262144 twos and
262144 threes. In the second column, the first 65536 rows will have
zeros, the next 65536 rows ones, then 65536 rows of twos and 65536 rows of
threes. The rest of the rows of the second column are filled the same way
the first 262144 are filled up. I hope you got the pattern here of
filling up the rest of the columns.
What's the best way to create this matrix with less running time? Can
this be done using sequences? (I need to use it in some other
calculations).
Thanks.
Caroline
|
[View Complete Thread]
Previous by date: [MUG] Re: plots from Maple, Maple User Group
Next by date: [MUG] Re: Question about programming maple with graphic commands, Maple User Group
Previous thread: [MUG] Maple and Octave, Brad Camroux
Next thread: [MUG] Re: Question about programming maple with graphic commands, Raphael Giromini
|
|
|