comparison liboctave/MArray.h @ 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 b756ce0002db
comparison
equal deleted inserted replaced
7788:45f5faba05a2 7789:82be108cc558
61 { 61 {
62 Array<T>::operator = (a); 62 Array<T>::operator = (a);
63 return *this; 63 return *this;
64 } 64 }
65 65
66 MArray<T> transpose (void) const { return Array<T>::transpose (); }
67 MArray<T> hermitian (T (*fcn) (const T&) = 0) const { return Array<T>::hermitian (fcn); }
68
66 octave_idx_type nnz (void) const 69 octave_idx_type nnz (void) const
67 { 70 {
68 octave_idx_type retval = 0; 71 octave_idx_type retval = 0;
69 72
70 const T *d = this->data (); 73 const T *d = this->data ();
79 82
80 return retval; 83 return retval;
81 } 84 }
82 85
83 double norm (double p) const; 86 double norm (double p) const;
87 float norm (float p) const;
84 88
85 template <class U, class F> 89 template <class U, class F>
86 MArray<U> map (F fcn) const 90 MArray<U> map (F fcn) const
87 { 91 {
88 return Array<T>::template map<U> (fcn); 92 return Array<T>::template map<U> (fcn);