1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscBT.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>PetscBT</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.7.5 2017-01-01</b></div>
<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.7.5 v3.7.5 docs/manualpages/Sys/PetscBT.html "><small>Report Typos and Errors</small></a></div>
<A NAME="PetscBT"><H1>PetscBT</H1></A>
PETSc bitarrays
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
typedef char* <A HREF="../Sys/PetscBT.html#PetscBT">PetscBT</A>;
</PRE>
<P>
PetscBTCreate(m,&bt) - creates a bit array with enough room to hold m values
PetscBTDestroy(&bt) - destroys the bit array
PetscBTMemzero(m,bt) - zeros the entire bit array (sets all values to false)
PetscBTSet(bt,index) - sets a particular entry as true
PetscBTClear(bt,index) - sets a particular entry as false
PetscBTLookup(bt,index) - returns the value
PetscBTLookupSet(bt,index) - returns the value and then sets it true
PetscBTLookupClear(bt,index) - returns the value and then sets it false
PetscBTLength(m) - returns number of bytes in array with m bits
PetscBTView(m,bt,viewer) - prints all the entries in a bit array
<P>
We do not currently check error flags on PetscBTSet(), PetscBTClear(), PetscBTLookup(),
PetcBTLookupSet(), PetscBTLength() cause error checking would cost hundreds more cycles then
the operation.
<P>
<P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>advanced
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../include/petscbt.h.html#PetscBT">include/petscbt.h</A>
<BR><A HREF="./index.html">Index of all Sys routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>
|