"Fossies" - the Fresh Open Source Software Archive

Member "petsc-3.12.4/docs/manualpages/Sys/PetscClipInterval.html" (4 Feb 2020, 2440 Bytes) of package /linux/misc/petsc-3.12.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
    2 <HTML>
    3 <HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscClipInterval.html" />
    4 <META NAME="GENERATOR" CONTENT="DOCTEXT">
    5 <TITLE>PetscClipInterval</TITLE>
    6 </HEAD>
    7 <BODY BGCOLOR="FFFFFF">
    8    <div id="version" align=right><b>petsc-3.12.4 2020-02-04</b></div>
    9    <div id="bugreport" align=right><a href="mailto:petsc-maint@mcs.anl.gov?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: petsc-3.12.4 v3.12.4 docs/manualpages/Sys/PetscClipInterval.html "><small>Report Typos and Errors</small></a></div>
   10 <A NAME="PetscClipInterval"><H1>PetscClipInterval</H1></A>
   11 Returns a number clipped to be within an interval 
   12 <H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
   13 <PRE>
   14 #include &lt;petscmath.h&gt;
   15 type clip <A HREF="../Sys/PetscClipInterval.html#PetscClipInterval">PetscClipInterval</A>(type x,type a,type b)
   16 </PRE>
   17 Not Collective
   18 <P>
   19 <H3><FONT COLOR="#CC3333">Input Parameter</FONT></H3>
   20 <TABLE border="0" cellpadding="0" cellspacing="0">
   21 <TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>x </B></TD><TD>- value to use if within interval (a,b)
   22 </TD></TR>
   23 <TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>a </B></TD><TD>- lower end of interval
   24 </TD></TR>
   25 <TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>b </B></TD><TD>- upper end of interval
   26 </TD></TR></TABLE>
   27 <P>
   28 <H3><FONT COLOR="#CC3333">Notes</FONT></H3>
   29 type can be integer or floating point value
   30 <P>
   31 
   32 <P>
   33 <H3><FONT COLOR="#CC3333">See Also</FONT></H3>
   34  <A HREF="../Sys/PetscMin.html#PetscMin">PetscMin</A>(), <A HREF="../Sys/PetscMax.html#PetscMax">PetscMax</A>(), <A HREF="../Sys/PetscAbsInt.html#PetscAbsInt">PetscAbsInt</A>(), <A HREF="../Sys/PetscAbsReal.html#PetscAbsReal">PetscAbsReal</A>(), <A HREF="../Sys/PetscSqr.html#PetscSqr">PetscSqr</A>()
   35 <BR>
   36 <P>
   37 <P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>beginner<BR>
   38 <H3><FONT COLOR="#CC3333">Location</FONT></H3>
   39 </B><A HREF="../../../include/petscmath.h.html#PetscClipInterval">include/petscmath.h</A>
   40 <P><H3><FONT COLOR="#CC3333">Examples</FONT></H3>
   41 <A HREF="../../../src/snes/examples/tutorials/ex15.c.html">src/snes/examples/tutorials/ex15.c.html</A><BR>
   42 <BR><A HREF="./index.html">Index of all Sys routines</A>
   43 <BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
   44 <BR><A HREF="../singleindex.html">Index of all manual pages</A>
   45 </BODY></HTML>