Opened 13 years ago
Closed 10 years ago
#3449 closed Feature Requests (fixed)
introduce new free functions to access matrix/vector properties
Reported by: | Gunter | Owned by: | Gunter |
---|---|---|---|
Milestone: | Boost 1.41.0 | Component: | uBLAS |
Version: | Boost Release Branch | Severity: | Optimization |
Keywords: | Cc: |
Description
introduce new functions to make the access to important matrix properties more user friendly. The required functions are:
for vector expression
size( v ); // the number of elements in the vector size<1>( v ); // synonym of size( v )
for matrix expression
// rationale: this is the most common name in mathematics num_rows( m ); // return number of rows num_columns( m ); // return number of row
// rationale: size<i> gives the size of the i-th index of operator() size<1>( m ); // synonym of num_rows( m ) size<2>( m ); // synonym of num_columns( m )
for matrix containers
size<tag::major>( m ); // return the number of elements in the outer loop size<tag::minor>( m ); // return the number of elements in the inner loop
maybe for dense matrix proxies
// rationale: this is widely used by LAPACK and similar size<tag::leading>( m ); // return the leading dimension
note: 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.
Change History (12)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
comment:3 by , 13 years ago
Milestone: | To Be Determined → Boost 1.41.0 |
---|---|
Status: | new → assigned |
comment:4 by , 13 years ago
comment:5 by , 13 years ago
comment:6 by , 13 years ago
comment:7 by , 13 years ago
comment:8 by , 13 years ago
comment:9 by , 13 years ago
comment:11 by , 11 years ago
Version: | Boost 1.40.0 → Boost Release Branch |
---|
Any news about A defector's mystical disappearance?
comment:12 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
close this issue because it has been merged to release months ago, see http://svn.boost.org/svn/boost/branches/release/libs/numeric/ublas/test/size.cpp
(In [56600]) see #3449: introduce new free functions to access matrix/vector properties (Incomplete)