Mercurial > hg > octave-lyh
comparison liboctave/CColVector.cc @ 7789:82be108cc558
First attempt at single precision tyeps
* * *
corrections to qrupdate single precision routines
* * *
prefer demotion to single over promotion to double
* * *
Add single precision support to log2 function
* * *
Trivial PROJECT file update
* * *
Cache optimized hermitian/transpose methods
* * *
Add tests for tranpose/hermitian and ChangeLog entry for new transpose code
author | David Bateman <dbateman@free.fr> |
---|---|
date | Sun, 27 Apr 2008 22:34:17 +0200 |
parents | 8c32f95c2639 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
7788:45f5faba05a2 | 7789:82be108cc558 |
---|---|
219 retval.insert (*this, 0); | 219 retval.insert (*this, 0); |
220 retval.insert (a, nr_insert); | 220 retval.insert (a, nr_insert); |
221 return retval; | 221 return retval; |
222 } | 222 } |
223 | 223 |
224 ComplexRowVector | 224 ComplexRowVector |
225 ComplexColumnVector::hermitian (void) const | 225 ComplexColumnVector::hermitian (void) const |
226 { | 226 { |
227 octave_idx_type len = length (); | 227 return MArray<Complex>::hermitian (std::conj); |
228 return ComplexRowVector (mx_inline_conj_dup (data (), len), len); | |
229 } | 228 } |
230 | 229 |
231 ComplexRowVector | 230 ComplexRowVector |
232 ComplexColumnVector::transpose (void) const | 231 ComplexColumnVector::transpose (void) const |
233 { | 232 { |
234 return ComplexRowVector (*this); | 233 return MArray<Complex>::transpose (); |
235 } | 234 } |
236 | 235 |
237 ComplexColumnVector | 236 ComplexColumnVector |
238 conj (const ComplexColumnVector& a) | 237 conj (const ComplexColumnVector& a) |
239 { | 238 { |