Mercurial > hg > octave-lyh
comparison liboctave/Range.cc @ 2599:9705ea40f0a2
[project @ 1996-12-19 04:49:09 by jwe]
author | jwe |
---|---|
date | Thu, 19 Dec 1996 04:49:28 +0000 |
parents | 096529066838 |
children | 9aeba8e006a4 |
comparison
equal
deleted
inserted
replaced
2598:36a4daa9e3c7 | 2599:9705ea40f0a2 |
---|---|
146 a.rng_nelem = a.nelem_internal (); | 146 a.rng_nelem = a.nelem_internal (); |
147 } | 147 } |
148 } | 148 } |
149 | 149 |
150 return is; | 150 return is; |
151 } | |
152 | |
153 Range | |
154 operator - (const Range& r) | |
155 { | |
156 return Range (-r.base (), -r.limit (), -r.inc ()); | |
151 } | 157 } |
152 | 158 |
153 // C See Knuth, Art Of Computer Programming, Vol. 1, Problem 1.2.4-5. | 159 // C See Knuth, Art Of Computer Programming, Vol. 1, Problem 1.2.4-5. |
154 // C | 160 // C |
155 // C===Tolerant FLOOR function. | 161 // C===Tolerant FLOOR function. |