2008/4/11, Anders Logg <[EMAIL PROTECTED]>:
> On Fri, Apr 11, 2008 at 12:23:15PM +0100, Garth N. Wells wrote:
>  >
>  >
>  > Anders Logg wrote:
>  > > Which one do we want to use for element access in vectors and
>  > > matrices. It looks like operator() is now implemented for uBlasVector,
>  > > but isn't operator[] more natural to use?
>  > >
>  >
>  > Much the same to me. We've used (.,.) for matrices, so it seems natural
>  > to use (.) for vectors.
>  >
>  > Garth
>
>
> We could use [] for matrices also I guess.
>
>  Then it will look the same as numpy.

It's useful to index vectors with [], since the code will be similar
for regular arrays.

-- 
Martin
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to