Matrix with vector interface.

Joaquim Duran <[email protected]>
Newsgroups gmane.comp.lib.boost.ublas
Message-ID <CANdawSHTea-u2u21SETB4e7BeYKruQXpt1xE1_YZ4n-q2+oPPA@mail.gmail.com>
Dear all,

My name is Joaquim Duran. I'm new to this mail list.

I'm using ublas for signal processing and I'm interested that the
matrix have a similar interface to a vector, using a proxy, to apply
algorithms designed for vectors. To get an idea, if the element of a
vector is a double, then the element of a row facade is a column. If
this possible to get this behavior using existing proxies?

I'll detail which is the expected behavior of the proxy:

Matrix      Column Proxy
--------       --------------------
begin2()    begin()
end2()       end()
rbegin2()   rbegin()
rend2()      rend()
size2()      size()
resize2()   resize()
*iter: double  matrix_row(matrix, i)

Matrix      Row Proxy
--------       --------------------
begin1()    begin()
end1()       end()
rbegin1()   rbegin()
rend1()      rend()
size1()      size()
resize1()   resize()
*iter: double  matrix_column(matrix, i)

Example: Sort the columns of a matrix based on their module:

using namespace boost::numeric::ublas;

template <typedef Vector>
bool less_module(const Vector& v1, const Vector& v2)
{
     return
}

main()
{
     vector v1;

}
_______________________________________________
ublas mailing list
[email protected]
http://lists.boost.org/mailman/listinfo.cgi/ublas
Sent to: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.