Boost logo

Ublas :

Subject: Re: [ublas] size1 and size2
From: er (erwann.rogard_at_[hidden])
Date: 2009-09-13 22:23:13


Nasos Iliopoulos wrote:
> I have a problem with rows and cols like other people have with left and
> right. I have to think which is which :).
> Beyond that I prefer size1 and size2 for the same reasons Curtis does,
> but i don't see much of a problem providing overloads to them under the
> umbrella of a utils.h header or something.
> size<1> and size<2> would be my personal favourite (as Gunter proposed),
> but I think it goes too much for the average user.
>
> Best
> Nasos
>

size_major would be closer to the STL convention, and avoids a new
convention (row) on top of another (major). However size1, size<1>, or
perhaps size<0> all seem fine.

Note, though, that I don't use ublas that much (for now).