Boost C++ Libraries: Ticket #3449: introduce new free functions to access matrix/vector properties https://svn.boost.org/trac10/ticket/3449 <p> introduce new functions to make the access to important matrix properties more user friendly. The required functions are: </p> <p> <em>for vector expression</em> </p> <pre class="wiki">size( v ); // the number of elements in the vector size&lt;1&gt;( v ); // synonym of size( v ) </pre><p> <em>for matrix expression</em> </p> <pre class="wiki">// rationale: this is the most common name in mathematics num_rows( m ); // return number of rows num_columns( m ); // return number of row </pre><pre class="wiki">// rationale: size&lt;i&gt; gives the size of the i-th index of operator() size&lt;1&gt;( m ); // synonym of num_rows( m ) size&lt;2&gt;( m ); // synonym of num_columns( m ) </pre><p> <em>for matrix containers</em> </p> <pre class="wiki">size&lt;tag::major&gt;( m ); // return the number of elements in the outer loop size&lt;tag::minor&gt;( m ); // return the number of elements in the inner loop </pre><p> <em>maybe for dense matrix proxies</em> </p> <pre class="wiki">// rationale: this is widely used by LAPACK and similar size&lt;tag::leading&gt;( m ); // return the leading dimension </pre><p> <strong>note:</strong> The leading dimension is the distance in memory between elements of two consecutive rows/columns which have the same colum/row index. This value must be extracted from the underlying matrix container. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3449 Trac 1.4.3 Gunter Mon, 05 Oct 2009 20:44:09 GMT <link>https://svn.boost.org/trac10/ticket/3449#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3449#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56600" title="see #3449: introduce new free functions to access matrix/vector ...">[56600]</a>) see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3449" title="#3449: Feature Requests: introduce new free functions to access matrix/vector properties (closed: fixed)">#3449</a>: introduce new free functions to access matrix/vector properties (Incomplete) </p> <ul><li>move experimental traits of T[N] and T[M][N] to separate file </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Mon, 05 Oct 2009 20:57:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3449#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3449#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56602" title="see #3449: introduce new free functions to access matrix/vector ...">[56602]</a>) see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3449" title="#3449: Feature Requests: introduce new free functions to access matrix/vector properties (closed: fixed)">#3449</a>: introduce new free functions to access matrix/vector properties (Incomplete) </p> <ul><li>added patch from Marco Guazzone implementing all requested new functions </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Mon, 05 Oct 2009 21:00:38 GMT</pubDate> <title>status, milestone changed https://svn.boost.org/trac10/ticket/3449#comment:3 https://svn.boost.org/trac10/ticket/3449#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.41.0</span> </li> </ul> Ticket Gunter Tue, 06 Oct 2009 21:57:59 GMT <link>https://svn.boost.org/trac10/ticket/3449#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3449#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56621" title="see #3449: introduce new free functions to access matrix/vector ...">[56621]</a>) see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3449" title="#3449: Feature Requests: introduce new free functions to access matrix/vector properties (closed: fixed)">#3449</a>: introduce new free functions to access matrix/vector properties (Incomplete) </p> <ul><li>added error message when BOOST_UBLAS_NO_NESTED_CLASS_RELATION is defined because the free funtions will not work here. </li></ul><p> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Tue, 06 Oct 2009 23:13:48 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3449#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3449#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56624" title="see #3396 (view concepts), see #3449 (new free functions) * merged ...">[56624]</a>) see <a class="assigned ticket" href="https://svn.boost.org/trac10/ticket/3396" title="#3396: Feature Requests: add a sparse_view class that wraps pre-allocated data into a matrix ... (assigned)">#3396</a> (view concepts), see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3449" title="#3449: Feature Requests: introduce new free functions to access matrix/vector properties (closed: fixed)">#3449</a> (new free functions) </p> <ul><li>merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/51765" title="fwd.hpp: * default arguments for generalized_vector_of_vector ...">[51765]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/56003" title="see #3396 traits.hpp: * split traits into &#34;view traits&#34; and ...">[56003]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/56600" title="see #3449: introduce new free functions to access matrix/vector ...">[56600]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/56602" title="see #3449: introduce new free functions to access matrix/vector ...">[56602]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/56621" title="see #3449: introduce new free functions to access matrix/vector ...">[56621]</a> into release </li><li>added new free functions to simplify learning uBLAS </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Wed, 07 Oct 2009 18:26:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3449#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3449#comment:6</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56637" title="see #3449: introduce new free functions to access matrix/vector ...">[56637]</a>) see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3449" title="#3449: Feature Requests: introduce new free functions to access matrix/vector properties (closed: fixed)">#3449</a>: introduce new free functions to access matrix/vector properties </p> <ul><li>marked begin_end test as "expected fail" for msvc-7.1 </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Wed, 28 Oct 2009 22:25:10 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3449#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3449#comment:7</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/57205" title="see #3449 * merged [56637]: marked known failure of begin_end test ...">[57205]</a>) see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3449" title="#3449: Feature Requests: introduce new free functions to access matrix/vector properties (closed: fixed)">#3449</a> </p> <ul><li>merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/56637" title="see #3449: introduce new free functions to access matrix/vector ...">[56637]</a>: marked known failure of begin_end test for msvc 7.1 </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Wed, 28 Oct 2009 22:43:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3449#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3449#comment:8</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/57207" title="see #3443: * merged improved documentation * enabled forgotten unit ...">[57207]</a>) see <a class="new ticket" href="https://svn.boost.org/trac10/ticket/3443" title="#3443: Tasks: improve documentation (new)">#3443</a>: </p> <ul><li>merged improved documentation </li><li>enabled forgotten unit tests in jamfile (see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3449" title="#3449: Feature Requests: introduce new free functions to access matrix/vector properties (closed: fixed)">#3449</a>) </li><li>merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/53674" title="Fix a couple of typos in the ublas documentation. Fixes #3056, #3057.">[53674]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/53675" title="Fix a mix up between euclidean and uniform norm. Refs #3056.">[53675]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/56584" title="see #3443: improve documentation * added automatic navigation (using ...">[56584]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/56601" title="see #3443: updated copyright header ">[56601]</a> into release </li><li>partially merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/56005" title="see #3396 test/concepts.cpp: * prepared test for vector_view and ...">[56005]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/56006" title="see #3396 doc/expression_concept.htm: * splitted required methods ...">[56006]</a> into release </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Wed, 28 Oct 2009 23:02:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3449#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3449#comment:9</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/57209" title="see #3449: introduce new free functions to access matrix/vector ...">[57209]</a>) see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3449" title="#3449: Feature Requests: introduce new free functions to access matrix/vector properties (closed: fixed)">#3449</a>: introduce new free functions to access matrix/vector properties (Incomplete) </p> <ul><li>added short documentation to release_notes page </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Gunter</dc:creator> <pubDate>Wed, 28 Oct 2009 23:09:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3449#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3449#comment:10</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/57210" title="see #3449: * merged [57209] into release ">[57210]</a>) see <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3449" title="#3449: Feature Requests: introduce new free functions to access matrix/vector properties (closed: fixed)">#3449</a>: </p> <ul><li>merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/57209" title="see #3449: introduce new free functions to access matrix/vector ...">[57209]</a> into release </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Hannah Seymour</dc:creator> <pubDate>Sun, 26 Feb 2012 10:37:10 GMT</pubDate> <title>version changed https://svn.boost.org/trac10/ticket/3449#comment:11 https://svn.boost.org/trac10/ticket/3449#comment:11 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.40.0</span> → <span class="trac-field-new">Boost Release Branch</span> </li> </ul> <p> Any news about A defector's mystical disappearance? </p> Ticket Gunter Sun, 16 Sep 2012 20:57:31 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3449#comment:12 https://svn.boost.org/trac10/ticket/3449#comment:12 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> close this issue because it has been merged to release months ago, see <a class="ext-link" href="http://svn.boost.org/svn/boost/branches/release/libs/numeric/ublas/test/size.cpp"><span class="icon">​</span>http://svn.boost.org/svn/boost/branches/release/libs/numeric/ublas/test/size.cpp</a> </p> Ticket