[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CAT speedup
From: |
John W. Eaton |
Subject: |
CAT speedup |
Date: |
Mon, 1 Mar 2004 22:40:00 -0600 |
On 29-Feb-2004, Petter Risholm <address@hidden> wrote:
| I've reimplemented the cat function which has resulted in a considerable
| speedup. As it is now, it should be comparable to matlab's cat function
| when it comes to speed.
|
| The reason for the speedup comes mainly from elimination of all N-d
| indexing which was the bottleneck in the old version.
|
| This patch also provides horzcat and vertcat. They are currently
| called horzcat2 and vertcat2 since there already are a couple of .m
| scripts for doing horzcat and vertcat (I'm pretty sure they are quite a
| bit slower than my version for N-d concatenation, so I would recommend
| removing those .m files from the distribution).
I applied your changes.
Thanks,
jwe