Re: Matrix norm include file?

sguazt <[email protected]>
Newsgroups gmane.comp.lib.boost.ublas
Message-ID <CABbE_O7izF+cmVn0k53qXHSSGC0ZN_yzwU_RYspH+aHUjkOfdA@mail.gmail.com>
Hi


On Tue, Dec 10, 2013 at 3:17 AM, Reich, Darrell <[email protected]>wrote:

> I can’t find the include file to get index_norm_inf(A) to compile where A
> is a matrix? Either there is a typo in the documentation quoted below or
> I’m misunderstanding something fundamental like what type to send it? I’m
> using a regular vector and matrix for now.
>
>
>

I think is a doc error.

Currently, there is no such method for matrices. It is only defined for
vectors (in vector_expression.hpp).

Indeed, for matrices one needs to return a pair of indices: one for the row
and another one for the column.

Best,

-- Marco


>
> file:///C:/work/boost_1_54_0/libs/numeric/ublas/doc/operations_overview.htm#blas
>
>
>
> Advanced functions
>
> norms
>
>
>
> t = norm_inf(v); i = index_norm_inf(v);
>
> t = norm_1(v);   t = norm_2(v);
>
> t = norm_inf(A); i = *index_norm_inf*(A);
>
> t = norm_1(A);   t = norm_frobenius(A);
>
>
>
> We’re using Eclipse with Cygwin GnuC++ on Windows 7 (64-bit) along with
> Visual Studio 2012.
>
>
>
> I’ve grepped the source code both hpp & cpp with no luck so far: find .
> -name '*.hpp' -print -exec grep -i index_norm_inf {} \;
>
> Here’s what I’ve tried:
>
>
>
> *#include* "boost/numeric/interval.hpp" // from range a to b inclusive
>
> *#include* "boost/tuple/tuple.hpp" // heterogeneous container lists
>
> *#include* "boost/tuple/tuple_comparison.hpp"
>
> *#include* "boost/tuple/tuple_io.hpp"
>
> *#include* "boost/numeric/ublas/matrix.hpp"
>
> *#include* "boost/numeric/ublas/matrix_sparse.hpp"
>
> *#include* "boost/numeric/ublas/matrix_expression.hpp"
>
> *#include* "boost/numeric/ublas/matrix_proxy.hpp"
>
> *#include* "boost/numeric/ublas/functional.hpp"
>
> *#include* "boost/numeric/ublas/vector.hpp" // homogeneous
>
> *#include* "boost/numeric/ublas/vector_sparse.hpp"
>
> *#include* "boost/numeric/ublas/vector_expression.hpp"
>
> *#include* "boost/numeric/ublas/vector_proxy.hpp"
>
> *#include* "boost/numeric/ublas/io.hpp"
>
> *#include* "boost/numeric/ublas/lu.hpp" // Lower Upper
>
> *#include* "boost/numeric/ublas/matrix_proxy.hpp"
>
> *#include* "boost/numeric/ublas/triangular.hpp"
>
> *#include* "boost/numeric/ublas/traits.hpp"
>
> *#include* "boost/numeric/ublas/symmetric.hpp"
>
> *#include* "boost/math/tools/roots.hpp"
>
> *#include* "boost/math/constants/constants.hpp"
>
> *#include* <iostream>
>
>
>
> Thanks! I see there is a new release to download, version 1.55.0
> (11/11/2013)
>
>
>
> _______________________________________________
> 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.