Boost logo

Proto :

Subject: [proto] Manipulating an expression tree
From: Karsten Ahnert (karsten.ahnert_at_[hidden])
Date: 2011-04-06 16:29:34


I have a numerical algorithm for auto-differentiation of higher order
derivatives. The algorithm works fine, and I want to optimize it now.

Is there a direct way to transform an expression tree into another one?
For example, is it possible that every proto::plus< > node is
transformed to it left child? I tried to solve this problem via protos
build-in transforms without success. It seems that they are suited for
evaluation of an existing tree, but I might be wrong.

Best regards,


Proto list run by eric at