[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48686] Copy of columns of the matrix
From: |
Polina |
Subject: |
[Octave-bug-tracker] [bug #48686] Copy of columns of the matrix |
Date: |
Wed, 3 Aug 2016 16:12:46 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36 |
Follow-up Comment #2, bug #48686 (project octave):
Hello!
The problem doesn't lay in resizing. It stays when I change the for-loop:
N = 1e4;
M = 1e3;
flag = 0;
flag1 = 0;
T = rand(M, N);
t1 = now();
for i=1:N-1
if (flag == 0)
T(:, i + 1) = T(:, i);
else
T(:, i + 1) = T(:, i) + flag1 * T(:, i);
end
end
t2 = now();
datestr(t2 - t1, 'HH:MM:SS.FFF')
6 minutes instead of 1 second is anyhow too much.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48686>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/