One or more new changesets pushed to the primary dolfin repository. A short summary of the last three changesets is included below.
changeset: 6852:0e0c0c78a9154ed85b8865b2f377e8f54f079754 tag: tip user: "Johan Hake <[email protected]>" date: Wed Aug 26 14:18:26 2009 +0200 files: dolfin/la/Vector.h description: Implemented get_local in Vector changeset: 6851:9ea88770a341a9ec46ed44f70a6f63c05343a242 user: "Garth N. Wells <[email protected]>" date: Wed Aug 26 11:49:23 2009 +0100 files: SConstruct description: Use '-Werror' only when debug is enabled. changeset: 6850:84b6289891e7f8719799bb5d8290ec914891b577 user: "Garth N. Wells <[email protected]>" date: Tue Aug 25 17:16:35 2009 +0100 files: dolfin/la/GenericVector.h description: Add lambda function interface to GenericVector (not as pretty as Python, but still pretty neat). Allows simple mathematical operations to be applied to each element of a vector, e.g. - To set all elements equal to 2, x.lambda(_1 = 2); - To take the cosine of each element x.lambda(_1 = cos(_1)); - To add the cosine of the (entry (v[i] = v[i] + cos(v[i]) x.lambda(_1 += cos(_1)); - To set the entry equal to zero if it is less than zero or set it equal to one if it's greater than 1, x.lambda(if_then_else(_1 < 0.0, _1 = 0.0, if_then(_1 > 1.0, _1 = 1.0))); To set the entries of vector v equal to the square of the entries in vector w, v.lambda(x, _1*_1); See Boost.Lambda ( http://www.boost.org/doc/libs/1_39_0/doc/html/lambda.html) for more details. ---------------------------------------------------------------------- For more details, visit http://www.fenics.org/hg/dolfin _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
