|
From: | Luis F. Ortiz |
Subject: | Re: 3D versus 2D Indexing and the Speed Thereof |
Date: | Wed, 11 Apr 2007 17:11:15 -0400 |
On 10-Apr-2007, Luis F. Ortiz wrote: | A specialization that looked like: | | | template <class T> | int | assign2 (Array<T>& lhs, const Array<T>& rhs, const T& rfv) Did you see my later message https://www.cae.wisc.edu/pipermail/octave-maintainers/2007-April/002451.html
... | On the other hand, if we broke up assign2 into subfunctions that took | care of the common | parts and were defined to be inline, the duplication could be kept to a | minimum. | I would suspect that index() and assign() would in fact have common | code. Refactoring index and assign would also be OK, but I don't think it is immediately necessary.
[Prev in Thread] | Current Thread | [Next in Thread] |