<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2008 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>sizeof -- Get memory occupation in bytes of a sparse matrix</TITLE> <META NAME="description" CONTENT="sizeof -- Get memory occupation in bytes of a sparse matrix"> <META NAME="keywords" CONTENT="userhtml"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2008"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="userhtml.css"> <LINK REL="next" HREF="node28.html"> <LINK REL="previous" HREF="node26.html"> <LINK REL="up" HREF="node21.html"> <LINK REL="next" HREF="node28.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html568" HREF="node28.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html564" HREF="node21.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html558" HREF="node26.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html566" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <BR> <B> Next:</B> <A NAME="tex2html569" HREF="node28.html">get_fmt Short</A> <B> Up:</B> <A NAME="tex2html565" HREF="node21.html">Sparse Matrix class</A> <B> Previous:</B> <A NAME="tex2html559" HREF="node26.html">get_size Get</A> <B> <A NAME="tex2html567" HREF="node1.html">Contents</A></B> <BR> <BR> <!--End of Navigation Panel--> <H3><A NAME="SECTION00042600000000000000"> sizeof -- Get memory occupation in bytes of a sparse matrix</A> </H3> <P> <PRE> memory_size = a%sizeof() </PRE> <P> <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> Scope: <B>local</B> <BR></DD> </DL> <P> <DL> <DT><STRONG><B>On Return</B></STRONG></DT> <DD> </DD> <DT><STRONG>Function value</STRONG></DT> <DD>The memory occupation in bytes. </DD> </DL> <P> <BR><HR> </BODY> </HTML>