📄 strided1d.html
字号:
<HTML><!-- -- Copyright (c) 1998,1999 -- University of Notre Dame -- -- Permission to use, copy, modify, distribute and sell this software -- and its documentation for any purpose is hereby granted without fee, -- provided that the above copyright notice appears in all copies and -- that both that copyright notice and this permission notice appear -- in supporting documentation. The University of Notre Dame makes no -- representations about the suitability of this software for any -- purpose. It is provided "as is" without express or implied warranty. -- --><HEAD><TITLE>Description of strided1D</TITLE></HEAD><BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b" ALINK="#ff0000"> <FONT FACE=Helvetica><!--end header--><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 WIDTH=100%><TR><TD><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=100%><TR><TD Align=left valign=middle width=440 rowspan=2><FONT FACE=verdana,arial,helvetica SIZE=+3 COLOR=#110088><B>strided1D<RandomAccessContainerRef></B></FONT></TD><TD valign=middle Align=right width=128 rowspan=2><A HREF="http://lsc.nd.edu/research/mtl"><IMG BORDER=0 SRC="./glossy-mtl-logo.jpg" height=48 ALT="[MTL Home]"></A></TD><TD Align=center width=280 nowrap><Font face=verdana,arial,helvetica size=+3><b>Programmers Guide</b></font></TD></TR><TR BGCOLOR='#2020b0'><TD HEIGHT=20 VALIGN='MIDDLE' NOWRAP align=center STYLE="font-family:verdana,arial,helvetica;font-weight:bold;"> <A STYLE="text-decoration:none;color:white;font-family:verdana,arial,helvetica;font-weight:bold;" HREF="./table_of_contents.html">Contents</A> | <A STYLE="text-decoration:none;color:white;font-family:verdana,arial,helvetica;font-weight:bold;" HREF="./mtl_index.html">Index</A> | <A STYLE="text-decoration:none;color:white;font-family:verdana,arial,helvetica;font-weight:bold;" HREF="http://lsc.nd.edu/research/mtl/search.html">Search</A> </TD></TR></TABLE></TD></TR><TR><TD><Table Border=0 CellPadding=0 CellSpacing=0 width=100% cols=2><TR><TD Align=left><BR><TABLE BORDER=0 CellSpacing=0 CellPadding=0><TR><TD><Img src = "containers.gif" Alt="" WIDTH = "194" HEIGHT = "38" ></TD></TR><TR><TD><Img src = "adaptors.gif" Alt="" WIDTH = "194" HEIGHT = "38" ></TD></TR></TABLE></TD><TD Align=right><BR><TABLE BORDER=0 CellSpacing=0 CellPadding=0><TR><TD><Img src = "type.gif" Alt="" WIDTH = "194" HEIGHT = "38" ></TD></TR></TABLE></TD></TR><TR><TD Align=left VAlign=top><b>Category</b>:containers,adaptors</TD><TD Align=right VAlign=top><b>Component type</b>:type</TD></TR></Table></TD></TR><TR><TD><IMG SRC="whitespace.gif" Alt="" WIDTH="32" HEIGHT="10" ALIGN="TOP"></TD></TR><TR BGCOLOR=#e0e0e0><TD VALIGN=BOTTOM><FONT FACE=arial,helvetica SIZE=+1><B>Description</B></FONT></TD></TR><TR><TD> This class in not meant to be used directly. Instead it is created automatically when the stride(x,inc) function is invoked. See the documentation for "Shortcut for Creating A Strided <A HREF="Vector.html" >Vector</A>".</TD></TR><TR><TD><IMG SRC="whitespace.gif" Alt="" WIDTH="32" HEIGHT="15" ALIGN="TOP"></TD></TR><TR BGCOLOR=#e0e0e0><TD VALIGN=BOTTOM><FONT FACE=arial,helvetica SIZE=+1><B>Example</B></FONT></TD></TR><TR><TD></TD></TR><TR><TD><IMG SRC="whitespace.gif" Alt="" WIDTH="32" HEIGHT="15" ALIGN="TOP"></TD></TR><TR BGCOLOR=#e0e0e0><TD VALIGN=BOTTOM><FONT FACE=arial,helvetica SIZE=+1><B>Definition</B></FONT></TD></TR><TR><TD><A HREF="strided1D.h">strided1D.h</A></TD></TR><TR><TD><IMG SRC="whitespace.gif" Alt="" WIDTH="32" HEIGHT="15" ALIGN="TOP"></TD></TR><TR BGCOLOR=#e0e0e0><TD VALIGN=BOTTOM><FONT FACE=arial,helvetica SIZE=+1><B>Template Parameters</B></FONT></TD></TR><TR><TD><BR><TABLE BORDER><TR><TH>Parameter</TH><TH>Description</TH><TH>Default</TH></TR><TR><TD><TT>RandomAccessContainerRef</TT></TD><TD>base container type</TD><TD><TT> </TT></TD></TR></TABLE></TD></TR><TR><TD><IMG SRC="whitespace.gif" Alt="" WIDTH="32" HEIGHT="15" ALIGN="TOP"></TD></TR><TR BGCOLOR=#e0e0e0><TD VALIGN=BOTTOM><FONT FACE=arial,helvetica SIZE=+1><B>Model of</B></FONT></TD></TR><TR><TD> RandomAccessContainerRef</TD></TR><TR><TD><IMG SRC="whitespace.gif" Alt="" WIDTH="32" HEIGHT="15" ALIGN="TOP"></TD></TR><TR BGCOLOR=#e0e0e0><TD VALIGN=BOTTOM><FONT FACE=arial,helvetica SIZE=+1><B>Members</B></FONT></TD></TR><TR><TD><TABLE BORDER><TR><TH>Member</TH><TH>Where defined</TH><TH>Description</TH></TR> <TR><TD VALIGN="TOP"><TT> <TT>enum { N = RandomAccessContainerRef::N } </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>value_type </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> The value type </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>reference </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> The type for references to the value type </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>const_reference </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> The type for const references to the value type </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>iterator </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> The iterator type </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>const_iterator </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> The const iterator type </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>reverse_iterator </TT></TD> <TD><FONT FACE=Times SIZE=3> Reversible Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> The reverse iterator type </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>const_reverse_iterator </TT></TD> <TD><FONT FACE=Times SIZE=3> Reversible Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> The const reverse iterator type </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>scaled_type </TT></TD> <TD><FONT FACE=Times SIZE=3> Scalable </FONT></TD> <TD><FONT FACE=Times SIZE=3> The scaled vector type </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>sparsity </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> Whether the vector is sparse or <A HREF="dense.html" >dense</A> </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>IndexArrayRef </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> The type for references to the index <A HREF="array.html" >array</A> </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>IndexArray </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> The type for the index <A HREF="array.html" >array</A> </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>dimension </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> This is a 1D container </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>size_type </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> The unsigned integral type for dimensions and indices </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>difference_type </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> The integral type for differences between iterators </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>pointer </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> The type for pointers to the value type </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>subrange_type </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> The subrange vector type </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>strided1D (const <A HREF="Vector.html" >Vector</A>& r, int stride_) </TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> Normal Constructor </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> <TT>strided1D (const self& x) </TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> Copy Constructor </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> operator <TT>Vector& () </TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> iterator <TT>begin () </TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return an iterator pointing to the beginning of the vector </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> iterator <TT>end () </TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return an iterator pointing past the end of the vector </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> const_iterator <TT>begin () const</TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return a const iterator pointing to the begining of the vector </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> const_iterator <TT>end () const</TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return a const iterator pointing past the end of the vector </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> reverse_iterator <TT>rbegin () </TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> Reversible Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return a reverse iterator pointing to the last element of the vector </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> reverse_iterator <TT>rend () </TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> Reversible Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return a reverse iterator pointing past the end of the vector </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> const_reverse_iterator <TT>rbegin () const</TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> Reversible Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return a const reverse iterator pointing to the last element of the vector </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> const_reverse_iterator <TT>rend () const</TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> Reversible Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return a const reverse iterator pointing past the end of the vector </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> reference <TT>operator[] (size_type i) </TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> Random Access Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return a reference to the element with index i </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> const_reference <TT>operator[] (size_type i) const</TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> Random Access Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return a const reference to the element with index i </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> size_type <TT>size () const</TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> Container </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return the size of the vector </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> size_type <TT>nnz () const</TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> <A HREF="Vector.html" >Vector</A> </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return the number of non-zeroes </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> subrange_type <TT>operator() (size_type s, size_type f) const</TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> Return a subrange vector containing the elements from index s to f </FONT></TD> </TR> <TR><TD VALIGN="TOP"><TT> self& <TT>adjust_index (size_type i) </TT> </TT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> <TD><FONT FACE=Times SIZE=3> </FONT></TD> </TR></TABLE></TD></TR><TR><TD><IMG SRC="whitespace.gif" Alt="" WIDTH="32" HEIGHT="15" ALIGN="TOP"></TD></TR><TR BGCOLOR=#e0e0e0><TD VALIGN=BOTTOM><FONT FACE=arial,helvetica SIZE=+1><B>New members</B></FONT></TD></TR><TR><TD></TD></TR><TR><TD><IMG SRC="whitespace.gif" Alt="" WIDTH="32" HEIGHT="15" ALIGN="TOP"></TD></TR><TR BGCOLOR=#e0e0e0><TD VALIGN=BOTTOM><FONT FACE=arial,helvetica SIZE=+1><B>Notes</B></FONT></TD></TR><TR><TD></TD></TR><TR><TD><IMG SRC="whitespace.gif" Alt="" WIDTH="32" HEIGHT="15" ALIGN="TOP"></TD></TR><TR BGCOLOR=#e0e0e0><TD VALIGN=BOTTOM><FONT FACE=arial,helvetica SIZE=+1><B>See also</B></FONT></TD></TR><TR><TD></TD></TR></TABLE><!--start footer--> <P><CENTER><CENTER><IMG SRC="./blue-bar.jpg" width=640></CENTER></CENTER><P><A HREF="http://www.nd.edu"><IMG BORDER=0 SRC="./ndtoclogo.gif" ALT="[MTL Home]" ALIGN=absmiddle></A></A><FONT SIZE="-2"><A HREF="../LICENSE.htm">Copyright ©1998,1999 University of Notre Dame. All Rights Reserved.</FONT></FONT></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -