mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-16 02:49:03 +00:00
Added entrywise inversion and documentation for vec-vec operation
This commit is contained in:
+49
-101
@@ -3,8 +3,8 @@
|
||||
<!--Converted with LaTeX2HTML 2018 (Released Feb 1, 2018) -->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>psb_init -- Initializes PSBLAS parallel environment</TITLE>
|
||||
<META NAME="description" CONTENT="psb_init -- Initializes PSBLAS parallel environment">
|
||||
<TITLE>psb_sizeof -- Memory occupation</TITLE>
|
||||
<META NAME="description" CONTENT="psb_sizeof -- Memory occupation">
|
||||
<META NAME="keywords" CONTENT="userhtml">
|
||||
<META NAME="resource-type" CONTENT="document">
|
||||
<META NAME="distribution" CONTENT="global">
|
||||
@@ -16,162 +16,110 @@
|
||||
|
||||
<LINK REL="next" HREF="node101.html">
|
||||
<LINK REL="previous" HREF="node99.html">
|
||||
<LINK REL="up" HREF="node99.html">
|
||||
<LINK REL="up" HREF="node74.html">
|
||||
<LINK REL="next" HREF="node101.html">
|
||||
</HEAD>
|
||||
|
||||
<BODY >
|
||||
|
||||
<DIV CLASS="navigation"><!--Navigation Panel-->
|
||||
<A NAME="tex2html1517"
|
||||
<A NAME="tex2html1511"
|
||||
HREF="node101.html">
|
||||
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
|
||||
<A NAME="tex2html1513"
|
||||
HREF="node99.html">
|
||||
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
|
||||
<A NAME="tex2html1507"
|
||||
HREF="node74.html">
|
||||
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
|
||||
<A NAME="tex2html1501"
|
||||
HREF="node99.html">
|
||||
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
|
||||
<A NAME="tex2html1515"
|
||||
<A NAME="tex2html1509"
|
||||
HREF="node1.html">
|
||||
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
|
||||
<BR>
|
||||
<B> Next:</B> <A NAME="tex2html1518"
|
||||
HREF="node101.html">psb_info Return</A>
|
||||
<B> Up:</B> <A NAME="tex2html1514"
|
||||
HREF="node99.html">Parallel environment routines</A>
|
||||
<B> Previous:</B> <A NAME="tex2html1508"
|
||||
HREF="node99.html">Parallel environment routines</A>
|
||||
<B> <A NAME="tex2html1516"
|
||||
<B> Next:</B> <A NAME="tex2html1512"
|
||||
HREF="node101.html">Sorting utilities</A>
|
||||
<B> Up:</B> <A NAME="tex2html1508"
|
||||
HREF="node74.html">Data management routines</A>
|
||||
<B> Previous:</B> <A NAME="tex2html1502"
|
||||
HREF="node99.html">psb_sp_getrow Extract</A>
|
||||
<B> <A NAME="tex2html1510"
|
||||
HREF="node1.html">Contents</A></B>
|
||||
<BR>
|
||||
<BR></DIV>
|
||||
<!--End of Navigation Panel-->
|
||||
|
||||
<H2><A NAME="SECTION00081000000000000000">
|
||||
psb_init -- Initializes PSBLAS parallel
|
||||
environment</A>
|
||||
<H2><A NAME="SECTION000726000000000000000">
|
||||
psb_sizeof -- Memory occupation</A>
|
||||
</H2>
|
||||
|
||||
<P>
|
||||
This function computes the memory occupation of a PSBLAS object.
|
||||
|
||||
<P>
|
||||
<PRE>
|
||||
call psb_init(icontxt, np, basectxt, ids)
|
||||
isz = psb_sizeof(a)
|
||||
isz = psb_sizeof(desc_a)
|
||||
isz = psb_sizeof(prec)
|
||||
</PRE>
|
||||
|
||||
<P>
|
||||
This subroutine initializes the PSBLAS parallel environment, defining
|
||||
a virtual parallel machine.
|
||||
<DL>
|
||||
<DT><STRONG>Type:</STRONG></DT>
|
||||
<DD>Synchronous.
|
||||
<DD>Asynchronous.
|
||||
</DD>
|
||||
<DT><STRONG><B>On Entry </B></STRONG></DT>
|
||||
<DT><STRONG><B>On Entry</B></STRONG></DT>
|
||||
<DD>
|
||||
</DD>
|
||||
<DT><STRONG>np</STRONG></DT>
|
||||
<DD>Number of processes in the PSBLAS virtual parallel machine.
|
||||
<DT><STRONG>a</STRONG></DT>
|
||||
<DD>A sparse matrix
|
||||
<SPAN CLASS="MATH"><IMG
|
||||
WIDTH="16" HEIGHT="15" ALIGN="BOTTOM" BORDER="0"
|
||||
SRC="img1.png"
|
||||
ALT="$A$"></SPAN>.
|
||||
<BR>
|
||||
Scope: <B>global</B>.
|
||||
Scope: <B>local</B>
|
||||
<BR>
|
||||
Type: <B>optional</B>.
|
||||
Type: <B>required</B>
|
||||
<BR>
|
||||
Intent: <B>in</B>.
|
||||
<BR>
|
||||
Specified as: an integer value. Default: use all available processes.
|
||||
Specified as: a structured data of type spdata<TT>psb_Tspmat_type</TT>.
|
||||
</DD>
|
||||
<DT><STRONG>basectxt</STRONG></DT>
|
||||
<DD>the initial communication context. The new context
|
||||
will be defined from the processes participating in the initial one.
|
||||
<DT><STRONG>desc_a</STRONG></DT>
|
||||
<DD>Communication descriptor.
|
||||
<BR>
|
||||
Scope: <B>global</B>.
|
||||
Scope: <B>local</B>
|
||||
<BR>
|
||||
Type: <B>optional</B>.
|
||||
Type: <B>required</B>
|
||||
<BR>
|
||||
Intent: <B>in</B>.
|
||||
<BR>
|
||||
Specified as: an integer value. Default: use MPI_COMM_WORLD.
|
||||
Specified as: a structured data of type descdata<TT>psb_desc_type</TT>.
|
||||
</DD>
|
||||
<DT><STRONG>ids</STRONG></DT>
|
||||
<DD>Identities of the processes to use for the new context; the
|
||||
argument is ignored when <code>np</code> is not specified. This allows the
|
||||
processes in the new environment to be in an order different from the
|
||||
original one.
|
||||
<DT><STRONG>prec</STRONG></DT>
|
||||
<DD>Scope: <B>local</B>
|
||||
<BR>
|
||||
Scope: <B>global</B>.
|
||||
<BR>
|
||||
Type: <B>optional</B>.
|
||||
Type: <B>required</B>
|
||||
<BR>
|
||||
Intent: <B>in</B>.
|
||||
<BR>
|
||||
Specified as: an integer array. Default: use the indices <SPAN CLASS="MATH"><IMG
|
||||
WIDTH="93" HEIGHT="32" ALIGN="MIDDLE" BORDER="0"
|
||||
SRC="img96.png"
|
||||
ALT="$(0\dots np-1)$"></SPAN>.
|
||||
Specified as: a preconditioner data structure precdata<TT>psb_prec_type</TT>.
|
||||
</DD>
|
||||
</DL>
|
||||
|
||||
<P>
|
||||
<DL>
|
||||
<DT><STRONG><B>On Return</B></STRONG></DT>
|
||||
<DD>
|
||||
</DD>
|
||||
<DT><STRONG>icontxt</STRONG></DT>
|
||||
<DD>the communication context identifying the virtual
|
||||
parallel machine. Note that this is always a duplicate of
|
||||
<code>basectxt</code>, so that library communications are completely
|
||||
separated from other communication operations.
|
||||
<DT><STRONG>Function value</STRONG></DT>
|
||||
<DD>The memory occupation of the object specified in
|
||||
the calling sequence, in bytes.
|
||||
<BR>
|
||||
Scope: <B>global</B>.
|
||||
Scope: <B>local</B>
|
||||
<BR>
|
||||
Type: <B>required</B>.
|
||||
<BR>
|
||||
Intent: <B>out</B>.
|
||||
<BR>
|
||||
Specified as: an integer variable.
|
||||
Returned as: an <code>integer(psb_long_int_k_)</code> number.
|
||||
</DD>
|
||||
</DL>
|
||||
|
||||
<P>
|
||||
<BIG CLASS="LARGE"><B>Notes</B></BIG>
|
||||
|
||||
<OL>
|
||||
<LI>A call to this routine must precede any other PSBLAS call.
|
||||
</LI>
|
||||
<LI>It is an error to specify a value for <SPAN CLASS="MATH"><IMG
|
||||
WIDTH="22" HEIGHT="30" ALIGN="MIDDLE" BORDER="0"
|
||||
SRC="img134.png"
|
||||
ALT="$np$"></SPAN> greater than the
|
||||
number of processes available in the underlying base parallel
|
||||
environment.
|
||||
</LI>
|
||||
</OL>
|
||||
|
||||
<P>
|
||||
|
||||
<DIV CLASS="navigation"><HR>
|
||||
<!--Navigation Panel-->
|
||||
<A NAME="tex2html1517"
|
||||
HREF="node101.html">
|
||||
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
|
||||
<A NAME="tex2html1513"
|
||||
HREF="node99.html">
|
||||
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
|
||||
<A NAME="tex2html1507"
|
||||
HREF="node99.html">
|
||||
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
|
||||
<A NAME="tex2html1515"
|
||||
HREF="node1.html">
|
||||
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
|
||||
<BR>
|
||||
<B> Next:</B> <A NAME="tex2html1518"
|
||||
HREF="node101.html">psb_info Return</A>
|
||||
<B> Up:</B> <A NAME="tex2html1514"
|
||||
HREF="node99.html">Parallel environment routines</A>
|
||||
<B> Previous:</B> <A NAME="tex2html1508"
|
||||
HREF="node99.html">Parallel environment routines</A>
|
||||
<B> <A NAME="tex2html1516"
|
||||
HREF="node1.html">Contents</A></B> </DIV>
|
||||
<!--End of Navigation Panel-->
|
||||
<BR><HR>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
Reference in New Issue
Block a user