You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
3.1 KiB
HTML
118 lines
3.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<!--Converted with LaTeX2HTML 2018 (Released Feb 1, 2018) -->
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>triu -- Return the upper triangle</TITLE>
|
|
<META NAME="description" CONTENT="triu -- Return the upper triangle">
|
|
<META NAME="keywords" CONTENT="userhtml">
|
|
<META NAME="resource-type" CONTENT="document">
|
|
<META NAME="distribution" CONTENT="global">
|
|
|
|
<META NAME="Generator" CONTENT="LaTeX2HTML v2018">
|
|
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
|
|
|
|
<LINK REL="STYLESHEET" HREF="userhtml.css">
|
|
|
|
<LINK REL="next" HREF="node43.html">
|
|
<LINK REL="previous" HREF="node41.html">
|
|
<LINK REL="up" HREF="node26.html">
|
|
<LINK REL="next" HREF="node43.html">
|
|
</HEAD>
|
|
|
|
<BODY >
|
|
|
|
<DIV CLASS="navigation"><!--Navigation Panel-->
|
|
<A NAME="tex2html775"
|
|
HREF="node43.html">
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
|
|
<A NAME="tex2html771"
|
|
HREF="node26.html">
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
|
|
<A NAME="tex2html765"
|
|
HREF="node41.html">
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
|
|
<A NAME="tex2html773"
|
|
HREF="node1.html">
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
|
|
<BR>
|
|
<B> Next:</B> <A NAME="tex2html776"
|
|
HREF="node43.html">psb_set_mat_default Set</A>
|
|
<B> Up:</B> <A NAME="tex2html772"
|
|
HREF="node26.html">Sparse Matrix class</A>
|
|
<B> Previous:</B> <A NAME="tex2html766"
|
|
HREF="node41.html">tril Return</A>
|
|
<B> <A NAME="tex2html774"
|
|
HREF="node1.html">Contents</A></B>
|
|
<BR>
|
|
<BR></DIV>
|
|
<!--End of Navigation Panel-->
|
|
|
|
<H3><A NAME="SECTION000421600000000000000">
|
|
triu -- Return the upper triangle</A>
|
|
</H3>
|
|
|
|
<PRE>
|
|
call a%triu(u,info[,&
|
|
& diag,imin,imax,jmin,jmax,rscale,cscale,l])
|
|
</PRE>
|
|
|
|
<P>
|
|
Returns the upper triangular part of submatrix
|
|
<code>A(imin:imax,jmin:jmax)</code>, optionally rescaling row/col indices to
|
|
the range <code>1:imax-imin+1,1:jmax-jmin+1</code>, and returing the
|
|
complementary lower triangle.
|
|
<DL>
|
|
<DT><STRONG>Type:</STRONG></DT>
|
|
<DD>Asynchronous.
|
|
</DD>
|
|
<DT><STRONG><B>On Entry</B></STRONG></DT>
|
|
<DD>
|
|
</DD>
|
|
<DT><STRONG>a</STRONG></DT>
|
|
<DD>the sparse matrix.
|
|
<BR>
|
|
A variable of type <code>psb_Tspmat_type</code>.
|
|
<BR>
|
|
Scope: <B>local</B>.
|
|
<BR></DD>
|
|
<DT><STRONG>diag</STRONG></DT>
|
|
<DD>Include diagonals up to this one; <code>diag=1</code> means the
|
|
first superdiagonal, <code>diag=-1</code> means the first subdiagonal.
|
|
Default 0.
|
|
</DD>
|
|
<DT><STRONG>imin,imax,jmin,jmax</STRONG></DT>
|
|
<DD>Minimum and maximum row and column indices.
|
|
<BR>
|
|
Type: optional.
|
|
</DD>
|
|
<DT><STRONG>rscale,cscale</STRONG></DT>
|
|
<DD>Whether to rescale row/column indices.
|
|
Type: optional.
|
|
</DD>
|
|
</DL>
|
|
<DL>
|
|
<DT><STRONG><B>On Return</B></STRONG></DT>
|
|
<DD>
|
|
</DD>
|
|
<DT><STRONG>u</STRONG></DT>
|
|
<DD>A copy of the upper triangle of <code>a</code>.
|
|
<BR>
|
|
A variable of type <code>psb_Tspmat_type</code>.
|
|
</DD>
|
|
<DT><STRONG>l</STRONG></DT>
|
|
<DD>(optional) A copy of the lower triangle of <code>a</code>.
|
|
<BR>
|
|
A variable of type <code>psb_Tspmat_type</code>.
|
|
</DD>
|
|
<DT><STRONG>info</STRONG></DT>
|
|
<DD>Return code.
|
|
</DD>
|
|
</DL>
|
|
|
|
<P>
|
|
<BR><HR>
|
|
|
|
</BODY>
|
|
</HTML>
|