Mercurial > hg > octave-lyh
diff liboctave/CRowVector.cc @ 10363:a0728e81ed25
improve diag matrix interface & implementation
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 26 Feb 2010 11:44:38 +0100 |
parents | 12884915a8e4 |
children | 141b3fb5cef7 |
line wrap: on
line diff
--- a/liboctave/CRowVector.cc +++ b/liboctave/CRowVector.cc @@ -232,11 +232,7 @@ ComplexRowVector conj (const ComplexRowVector& a) { - octave_idx_type a_len = a.length (); - ComplexRowVector retval; - if (a_len > 0) - retval = ComplexRowVector (mx_inline_conj_dup (a.data (), a_len), a_len); - return retval; + return do_mx_unary_map<Complex, Complex, std::conj> (a); } // resize is the destructive equivalent for this one