Boost logo

Boost :

From: Joerg Walter (jhr.walter_at_[hidden])
Date: 2002-07-03 02:03:30


----- Original Message -----
From: "Benedikt Weber" <weber_at_[hidden]>
Newsgroups: gmane.comp.lib.boost.devel
To: <boost_at_[hidden]>
Sent: Tuesday, July 02, 2002 9:20 PM
Subject: [boost] Re: ublas type safety and bound check

> Joerg
>
> Could you give me a hint why you have to compare floating point numbers
> here.

Packed evaluation is used for triangular, symmetric, hermitean and banded
matrices. If we would not compare floating points here, we would probably
have to implement some (complex?) type computations.

> I was just thinking of some simple checks like if the dimensions of
> matrices are consistent for a matrix product or for assignment. For that
you
> would only need to compare indices. Or compile-time checks which would
> prevent you to assign a full matrix to a triangular one as I did in the
> example.

This could limit extensibility.

Regards

Joerg


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk