comparison liboctave/MDiagArray2.h @ 10312:cbc402e64d83

untabify liboctave header files
author John W. Eaton <jwe@octave.org>
date Thu, 11 Feb 2010 12:14:48 -0500
parents 4c0cdbe0acca
children 12884915a8e4
comparison
equal deleted inserted replaced
10311:a217e1d74353 10312:cbc402e64d83
84 const T *d = this->data (); 84 const T *d = this->data ();
85 85
86 octave_idx_type nel = this->length (); 86 octave_idx_type nel = this->length ();
87 87
88 for (octave_idx_type i = 0; i < nel; i++) 88 for (octave_idx_type i = 0; i < nel; i++)
89 { 89 {
90 if (d[i] != T ()) 90 if (d[i] != T ())
91 retval++; 91 retval++;
92 } 92 }
93 93
94 return retval; 94 return retval;
95 } 95 }
96 96
97 MArray<T> diag (octave_idx_type k = 0) const 97 MArray<T> diag (octave_idx_type k = 0) const