comparison liboctave/dDiagMatrix.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 36594d5bbe13
children 4976f66d469b
comparison
equal deleted inserted replaced
7788:45f5faba05a2 7789:82be108cc558
134 134
135 for (octave_idx_type i = 0; i < a_len; i++) 135 for (octave_idx_type i = 0; i < a_len; i++)
136 elem (i+beg, i+beg) = a.elem (i); 136 elem (i+beg, i+beg) = a.elem (i);
137 137
138 return *this; 138 return *this;
139 }
140
141 DiagMatrix
142 DiagMatrix::transpose (void) const
143 {
144 return DiagMatrix (mx_inline_dup (data (), length ()), cols (), rows ());
145 } 139 }
146 140
147 DiagMatrix 141 DiagMatrix
148 real (const ComplexDiagMatrix& a) 142 real (const ComplexDiagMatrix& a)
149 { 143 {