|
From: | John W. Eaton |
Subject: | Re: Using std::xxx routines from <algorithm>? |
Date: | Sun, 16 Apr 2017 07:52:19 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
On 04/15/2017 05:51 PM, Rik wrote:
I noticed in your last cset: for (octave_idx_type i = 0; i < nz; i++) r[i] = 0; Would it be clearer to start using routines from std::algorithm for fills and copies?
Yes, I agree it would be better to replace the explicit loops with calls to std functions.
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |