← Back to team overview

dolfin team mailing list archive

Re: operator() or operator[]

 



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


Follow ups

References