Subject: Re: [boost] different matrix library?
From: joel (joel.falcou_at_[hidden])
Date: 2009-08-14 13:34:03
Edward Grace wrote:
>>> but they are handled differently (different public interface)
>>> vector is modeled after std::valarray (everybody knows about valarray)
>>> and matrix is just a generalization of std::valarray behavior
>>> oh and vector is a column-vector
>> Just don't name it vector then. In lin. Alg. a vector is a matrix with
>> one dimension equal to 1. if not, ppl will wonder why matrix*vector
>> doesn't mean what they think it does.
> Just to stick my oar in -- there is also a subtle difference between a
> covector and a vector. This rarely seems to get a look-in when people
> implement linear algebra stuff. They may well be represented as a
> tuple in both cases but they interact differently. For example.
Exactly and that's lead to impractical interface. Having vector be
matrix with one dim = 1 solves this.
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk