<HTML> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- Created on December, 22 2009 by texi2html 1.64 --> <!-- Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author) Karl Berry <karl@freefriends.org> Olaf Bachmann <obachman@mathematik.uni-kl.de> and many others. Maintained by: Olaf Bachmann <obachman@mathematik.uni-kl.de> Send bugs and suggestions to <texi2html@mathematik.uni-kl.de> --> <HEAD> <TITLE>APRON 0.9.10: Assigning intervals</TITLE> <META NAME="description" CONTENT="APRON 0.9.10: Assigning intervals"> <META NAME="keywords" CONTENT="APRON 0.9.10: Assigning intervals"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="texi2html 1.64"> </HEAD> <BODY LANG="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000"> <A NAME="SEC81"></A> <TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0> <TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="apron_44.html#SEC80"> < </A>]</TD> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="apron_46.html#SEC82"> > </A>]</TD> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="apron_37.html#SEC73"> << </A>]</TD> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="apron_43.html#SEC79"> Up </A>]</TD> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="apron_49.html#SEC85"> >> </A>]</TD> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="apron.html#SEC_Top">Top</A>]</TD> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="apron_toc.html#SEC_Contents">Contents</A>]</TD> <TD VALIGN="MIDDLE" ALIGN="LEFT">[Index]</TD> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="apron_abt.html#SEC_About"> ? </A>]</TD> </TR></TABLE> <HR SIZE=1> <H3> Assigning intervals </H3> <!--docid::SEC81::--> <DL> <DT><U>Function:</U> void <B>ap_interval_set</B> <I>(ap_interval_t* <VAR>rop</VAR>, ap_interval_t* <VAR>op</VAR>)</I> <DD>Set the value of <VAR>rop</VAR> from <VAR>op</VAR>. </DL> <P> <A NAME="IDX60"></A> <DL> <DT><U>Function:</U> void <B>ap_interval_set_scalar</B> <I>(ap_interval_t* <VAR>rop</VAR>, ap_scalar_t* <VAR>inf</VAR>, ap_scalar_t* <VAR>sup</VAR>)</I> <DD>Set the value of <VAR>rop</VAR> from the interval [<VAR>inf</VAR>,<VAR>sup</VAR>]. </DL> </P><P> <A NAME="IDX61"></A> <DL> <DT><U>Function:</U> void <B>ap_interval_set_mpq</B> <I>(ap_interval_t* <VAR>rop</VAR>, mpq_t <VAR>inf</VAR>, mpq_t <VAR>sup</VAR>)</I> <DD><A NAME="IDX62"></A> <DT><U>Function:</U> void <B>ap_interval_set_int</B> <I>(ap_interval_t* <VAR>rop</VAR>, int <VAR>inf</VAR>, int <VAR>sup</VAR>)</I> <DD><A NAME="IDX63"></A> <DT><U>Function:</U> void <B>ap_interval_set_frac</B> <I>(ap_interval_t* <VAR>rop</VAR>, int <VAR>numinf</VAR>, int <VAR>deninf</VAR>, int <VAR>numsup</VAR>, int <VAR>densup</VAR>)</I> <DD>Set the value of <VAR>rop</VAR> from the interval [<VAR>inf</VAR>,<VAR>sup</VAR>] or [<VAR>numinf</VAR>/<VAR>deninf</VAR>,<VAR>numsup</VAR>/<VAR>densup</VAR>]. The scalars are of type MPQ. </DL> </P><P> <A NAME="IDX64"></A> <DL> <DT><U>Function:</U> void <B>ap_interval_set_double</B> <I>(ap_interval_t* <VAR>rop</VAR>, double <VAR>inf</VAR>, double <VAR>sup</VAR>)</I> <DD>Set the value of <VAR>rop</VAR> from the interval [<VAR>inf</VAR>,<VAR>sup</VAR>]. The scalars are of type DOUBLE. </DL> </P><P> <A NAME="IDX65"></A> <DL> <DT><U>Function:</U> void <B>ap_interval_set_top</B> <I>(ap_interval_t* <VAR>op</VAR>)</I> <DD><A NAME="IDX66"></A> <DT><U>Function:</U> void <B>ap_interval_set_bottom</B> <I>(ap_interval_t* <VAR>op</VAR>)</I> <DD>Set the value of <VAR>rop</VAR> resp. to the top interval [-oo,+oo] or to the empty interval [+1,-1]. </DL> </P><P> <A NAME="IDX67"></A> <DL> <DT><U>Function:</U> ap_interval_t* <B>ap_interval_alloc_set</B> <I>(ap_interval_t* <VAR>op</VAR>)</I> <DD>Combined allocation and assignement. </DL> </P><P> <A NAME="Comparing intervals"></A> <HR SIZE=1> <BR> <FONT SIZE="-1"> This document was generated by <I>Bertrand Jeannet</I> on <I>December, 22 2009</I> using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html "><I>texi2html</I></A> </BODY> </HTML>