mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-22 03:42:19 +00:00
249 lines
18 KiB
HTML
249 lines
18 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<title>Boost.uBlas: size.hpp File Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(initResizable);
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body onload='searchBox.OnSelectItem(0);'>
|
|
<!-- Generated by Doxygen 1.7.3 -->
|
|
<script type="text/javascript"><!--
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
--></script>
|
|
<script type="text/javascript">
|
|
function hasClass(ele,cls) {
|
|
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
|
|
}
|
|
|
|
function addClass(ele,cls) {
|
|
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
|
|
}
|
|
|
|
function removeClass(ele,cls) {
|
|
if (hasClass(ele,cls)) {
|
|
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
|
|
ele.className=ele.className.replace(reg,' ');
|
|
}
|
|
}
|
|
|
|
function toggleVisibility(linkObj) {
|
|
var base = linkObj.getAttribute('id');
|
|
var summary = document.getElementById(base + '-summary');
|
|
var content = document.getElementById(base + '-content');
|
|
var trigger = document.getElementById(base + '-trigger');
|
|
if ( hasClass(linkObj,'closed') ) {
|
|
summary.style.display = 'none';
|
|
content.style.display = 'block';
|
|
trigger.src = 'open.png';
|
|
removeClass(linkObj,'closed');
|
|
addClass(linkObj,'opened');
|
|
} else if ( hasClass(linkObj,'opened') ) {
|
|
summary.style.display = 'block';
|
|
content.style.display = 'none';
|
|
trigger.src = 'closed.png';
|
|
removeClass(linkObj,'opened');
|
|
addClass(linkObj,'closed');
|
|
}
|
|
return false;
|
|
}
|
|
</script>
|
|
<div id="top">
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="logo boost ublas.png"></td>
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">Boost.uBlas <span id="projectnumber">1.49</span></div>
|
|
<div id="projectbrief">Linear Algebra in C++: matrices, vectors and numeric algorithms</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li id="searchli">
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
initNavTree('a00632.html','');
|
|
</script>
|
|
<div id="doc-content">
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Classes</a> |
|
|
<a href="#namespaces">Namespaces</a> |
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<h1>size.hpp File Reference</h1> </div>
|
|
</div>
|
|
<div class="contents">
|
|
|
|
<p>The family of <code>size</code> operations.
|
|
<a href="#_details">More...</a></p>
|
|
<div class="textblock"><code>#include <boost/mpl/has_xxx.hpp></code><br/>
|
|
<code>#include <boost/mpl/if.hpp></code><br/>
|
|
<code>#include <boost/numeric/ublas/detail/config.hpp></code><br/>
|
|
<code>#include <boost/numeric/ublas/expression_types.hpp></code><br/>
|
|
<code>#include <boost/numeric/ublas/fwd.hpp></code><br/>
|
|
<code>#include <boost/numeric/ublas/tags.hpp></code><br/>
|
|
<code>#include <boost/numeric/ublas/traits.hpp></code><br/>
|
|
<code>#include <boost/utility/enable_if.hpp></code><br/>
|
|
<code>#include <cstddef></code><br/>
|
|
</div><div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
|
<img id="dynsection-0-trigger" src="closed.png"/> Include dependency graph for size.hpp:</div>
|
|
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
|
|
</div>
|
|
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
|
|
<div class="center"><img src="a00697.png" border="0" usemap="#size_8hpp" alt=""/></div>
|
|
<map name="size_8hpp" id="size_8hpp">
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="a00632_source.html">Go to the source code of this file.</a></p>
|
|
<table class="memberdecls">
|
|
<tr><td colspan="2"><h2><a name="nested-classes"></a>
|
|
Classes</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00084.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::matrix_size_type< MatrixT ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Wrapper type-traits used in <code>boost::lazy_enabled_if</code> for getting the size type (see below). <a href="a00084.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00085.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_dim_impl< 1, matrix_tag ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialization of <code>size_by_dim_impl</code> for computing the number of rows of a matrix. <a href="a00085.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_dim_impl< 1, vector_tag ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialization of <code>size_by_dim_impl</code> for computing the size of a vector. <a href="a00086.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00087.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_dim_impl< 2, matrix_tag ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialization of <code>size_by_dim_impl</code> for computing the number of columns of a matrix. <a href="a00087.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00088.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::leading, matrix_tag, column_major_tag ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialization of <code>size_by_tag_impl</code> for computing the size of the leading dimension of a column-major oriented matrix. <a href="a00088.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00089.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::leading, matrix_tag, row_major_tag ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialization of <code>size_by_tag_impl</code> for computing the size of the leading dimension of a row-major oriented matrix. <a href="a00089.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00090.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::major, matrix_tag, column_major_tag ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialization of <code>size_by_tag_impl</code> for computing the size of the major dimension of a column-major oriented matrix. <a href="a00090.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00091.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::major, matrix_tag, row_major_tag ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialization of <code>size_by_tag_impl</code> for computing the size of the major dimension of a row-major oriented matrix. <a href="a00091.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00092.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::minor, matrix_tag, column_major_tag ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialization of <code>size_by_tag_impl</code> for computing the size of the minor dimension of a column-major oriented matrix. <a href="a00092.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00093.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< tag::minor, matrix_tag, row_major_tag ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialization of <code>size_by_tag_impl</code> for computing the size of the minor dimension of a row-major oriented matrix. <a href="a00093.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00094.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::size_by_tag_impl< TagT, CategoryT, unknown_orientation_tag ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Specialization of <code>size_by_tag_impl</code> for computing the size of the given dimension of a unknown oriented expression. <a href="a00094.html#_details">More...</a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00095.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}::vector_size_type< VectorT ></a></td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Define a <code>has_size_type</code> trait class. <a href="a00095.html#_details">More...</a><br/></td></tr>
|
|
<tr><td colspan="2"><h2><a name="namespaces"></a>
|
|
Namespaces</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00648.html">boost</a></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00649.html">boost::numeric</a></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00595.html">boost::numeric::ublas</a></td></tr>
|
|
|
|
<p><tr><td class="mdescLeft"> </td><td class="mdescRight"><p>contains all important classes and functions of uBLAS </p>
|
|
<br/></td></tr>
|
|
</p>
|
|
<tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00653.html">boost::numeric::ublas::detail</a></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00654.html">boost::numeric::ublas::detail::anonymous_namespace{size.hpp}</a></td></tr>
|
|
<tr><td colspan="2"><h2><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr><td class="memTemplParams" colspan="2">template<typename VectorExprT > </td></tr>
|
|
<tr><td class="memTemplItemLeft" align="right" valign="top">BOOST_UBLAS_INLINE <br class="typebreak"/>
|
|
typename::boost::lazy_enable_if_c<br class="typebreak"/>
|
|
< detail::has_size_type<br class="typebreak"/>
|
|
< VectorExprT >::value, <br class="typebreak"/>
|
|
detail::vector_size_type<br class="typebreak"/>
|
|
< VectorExprT >>::type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00595.html#a21019ef1d90c1854094dffa247fe1daf">boost::numeric::ublas::size</a> (vector_expression< VectorExprT > const &ve)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the number of columns. <a href="#a21019ef1d90c1854094dffa247fe1daf"></a><br/></td></tr>
|
|
<tr><td class="memTemplParams" colspan="2">template<std::size_t Dim, typename MatrixExprT > </td></tr>
|
|
<tr><td class="memTemplItemLeft" align="right" valign="top">BOOST_UBLAS_INLINE <br class="typebreak"/>
|
|
matrix_traits< MatrixExprT ><br class="typebreak"/>
|
|
::size_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00595.html#ae62b9a905a3f11dbcd39f04a83174831">boost::numeric::ublas::size</a> (matrix_expression< MatrixExprT > const &me)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the size of the given dimension for the given matrix expression. <a href="#ae62b9a905a3f11dbcd39f04a83174831"></a><br/></td></tr>
|
|
<tr><td class="memTemplParams" colspan="2">template<std::size_t Dim, typename VectorExprT > </td></tr>
|
|
<tr><td class="memTemplItemLeft" align="right" valign="top">BOOST_UBLAS_INLINE <br class="typebreak"/>
|
|
vector_traits< VectorExprT ><br class="typebreak"/>
|
|
::size_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00595.html#a6f40af2680b23d710e619e10c73f6ffc">boost::numeric::ublas::size</a> (vector_expression< VectorExprT > const &ve)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the size of the given dimension for the given vector expression. <a href="#a6f40af2680b23d710e619e10c73f6ffc"></a><br/></td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<div class="textblock"><p>The family of <code>size</code> operations. </p>
|
|
<p>Copyright (c) 2009-2010, Marco Guazzone</p>
|
|
<p>Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
|
|
<dl class="author"><dt><b>Author:</b></dt><dd>Marco Guazzone, <a href="mailto:marco.guazzone@gmail.com">marco.guazzone@gmail.com</a> </dd></dl>
|
|
|
|
<p>Definition in file <a class="el" href="a00632_source.html">size.hpp</a>.</p>
|
|
</div></div>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="a00632.html">size.hpp</a> </li>
|
|
<!--- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Defines</a></div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<small>
|
|
<small>
|
|
<small>
|
|
<table width="100%">
|
|
<tr>
|
|
<td align="right">
|
|
Copyright © 2010-2011 David Bellot - Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">Boost Software License, Version 1.0.</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</small>
|
|
</small>
|
|
</small>
|