Boost logo

Ublas :

Subject: Re: [ublas] [bindings] lapack::lange: where is the computed norm?
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-07-23 04:15:46


Marco Guazzone wrote:

> Hi,
>
> In auxiliary, there are a family of ?LAN?? functions
> http://www.netlib.org/lapack/lug/node144.html
>
> used for computing the norm of a matrix.
> These functions differ from the type of matrix they work with.
> For instance, ?LANGE works with general matrices, while ?LANGB work
> with general banded matrices and ?LANHB works with Hermitian banded
> matrices.
> It appears that all these functions are FORTRAN FUNCTION returning some
> value. In bindings, it seems they are implemented as FORTRAN SUBROUTINE
> (i.e., returns a std::ptrdiff_t instead of the value computed by the
> function).
>

It requires adjusting the LAPACK code generator a bit. Most of the required
functionality is already present in the BLAS code generator, so hopefully it
will not be a huge undertaking to incorporate support for these functions.

Cheers,

Rutger