Subject: CGAL users discussion list
List archive
[cgal-discuss] Modular Arithmetic: Residue_type.h throwing Assertion Handling error.
Chronological Thread
- From: Sanket Agarwal <>
- To:
- Subject: [cgal-discuss] Modular Arithmetic: Residue_type.h throwing Assertion Handling error.
- Date: Sat, 27 Mar 2010 19:00:32 +0530
HI Guys,
I am trying to use the Modular Arithmetic functionalities of the CGAL package. Right now I am trying to familiarise myself with the code structure. I am trying to compile/run the following code snippet:
CGAL::Residue res(10); // Initialising the object res of residue class with the int constructor.
I am being bumped up with the following error:
-----------------------------------------------------------------------------------------------------
terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: FPU_get_cw() == CGAL_FE_TONEAREST
File: /usr/local/include/CGAL/Modular_arithmetic/Residue_type.h
Line: 110
Aborted
-----------------------------------------------------------------------------------------------------
Residue_type.h:
-----------------------------------------------------------------------------------------------------
106. static inline
107. double RES_round (double a){
108. // call CGAL::Protect_FPU_rounding<true> pfr(CGAL_FE_TONEAREST)
109. // before using modular arithmetic
110. CGAL_assertion(FPU_get_cw() == CGAL_FE_TONEAREST);
111. return ( (a + CST_CUT) - CST_CUT);
}
-----------------------------------------------------------------------------------------------------
Any pointers as to how I can correct this error ?
- [cgal-discuss] Modular Arithmetic: Residue_type.h throwing Assertion Handling error., Sanket Agarwal, 03/27/2010
- Re: [cgal-discuss] Modular Arithmetic: Residue_type.h throwing Assertion Handling error., Michael Hemmer, 03/27/2010
Archive powered by MHonArc 2.6.16.