Boost logo

Ublas :

From: Tim Davis (davis_at_[hidden])
Date: 2004-12-29 10:26:25


I don't like to use unsigned int's as inputs to my routines, because
they aren't typically used in user programs. "int" is more common
(or "long").

I would suggest using the -w option (-wd<number>) that turns off the
warning.

What is "ublas"?

dsorkin_at_[hidden] wrote:

>Hi.
> I'm using boost bindings to umfpack
>(from boost sandbox : boost-sandbox/libs/numeric/bindings/umfpack ).
>
> Umfpack "symbolic" driver function (in C) accept
>an " int " for matrix sizes and " int* " for indexes array.
>(Strictly speaking, it should have been 'unsigned' and 'unsigned*',
>if I don't miss some point.)
>
> As I understand, ublas matrix methods do some 'unsigned' comparisons
>to check sizes inside the code. This causes g++ to issue warning
>messages like this:
> "Warning : comparison of signed vs. unsigned.",
>even when compiling the basic examples from umfpack bindings documentation.
>
> I like to compile with 'g++ -ansi -pedantic -Wall' and don't like warnings.
>:)
>What can I do ?
>
>Thank you.
> Dmitri Sorkin.
>
>
>