Boost logo

Boost :

Subject: Re: [boost] [ublas] bugfix for matrix operation /
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2013-04-21 21:57:25


On Sat, Apr 20, 2013 at 10:02 AM, Mario Mulansky <mario.mulansky_at_[hidden]>wrote:

> On Tuesday, April 16, 2013 08:16:57 PM Steven Watanabe wrote:
> > AMDG
> >
> > On 04/16/2013 07:20 PM, Mario Mulansky wrote:
> > > Hi,
> > >
> > > I wanted to add an elementwise divide operations for ublas matrices
> using
> > > operator /
> >
> > I don't think that's such a great idea.
> > Using regular operators for elementwise
> > operations is likely to be surprising.
> > i.e. if you can do (A / B) you should
> > be able to do (A * B) as well, and it
> > you be the inverse of A / B. But
> > multiplication is defined for matrices
> > and is *not* an elementwise operation.
> > There is no way to define this that
> > won't surprise someone. There's a
> > good reason why uBlas doesn't provide
> > these operators already and why MATLAB
> > has a separate set of operators for
> > elementwise operations.
>
> So here's the patch I would like to be applied to ublas. As I said, it's
> almost trivial and would allow to add matrix-matrix operator/ for those who
> want it. Is it possible to have that added to ublas?
>

Better off creating a ticket and attaching the patch.

- Jeff


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