Changeset b7e838 in git for kernel/mpr_complex.h
- Timestamp:
- Jul 3, 2007, 4:45:57 PM (17 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- a3181c6c6f9d31d0bfc59b709eed83fcecba79c5
- Parents:
- 0ea97ea490acc1915ccaedd3839aadce86cf48e1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/mpr_complex.h
r0ea97e rb7e838 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: mpr_complex.h,v 1. 4 2004-07-30 12:18:50Singular Exp $ */6 /* $Id: mpr_complex.h,v 1.5 2007-07-03 14:45:57 Singular Exp $ */ 7 7 8 8 /* … … 117 117 inline int sign() // t>0:+1, t==0:0, t<0:-1 118 118 { return mpf_sgn( t ); }; 119 119 120 120 bool isZero(); // t == 0 ? 121 121 bool isOne(); // t == 1 ? … … 127 127 inline const mpf_t *mpfp() const { return &t; }; 128 128 inline mpf_t *_mpfp() { return &t; }; 129 129 130 130 inline operator double() { return mpf_get_d( t ); }; 131 131 inline operator double() const { return mpf_get_d( t ); }; … … 140 140 return 0; 141 141 }; 142 #endif 142 #endif 143 143 144 144 private: … … 226 226 inline void imag( gmp_float val ) { i = val; } 227 227 228 229 inline bool isZero() { return (r.isZero() && i.isZero()); } 228 230 void SmallToZero(); 229 231 };
Note: See TracChangeset
for help on using the changeset viewer.