I have a rather easy question, or so it would seem. I have looked for an answer but was unable to find one anywhere so I'm asking it here.
I am making a very simple iterative algorithm for which the input as well as the output at the end of every iteration is a vector (or matrix for that matter). What I want to do is use these elements as arguments for several functions during each of the iteration. So for example
Then what I would like to do is say
But no matter what I try I can't seem to get it to work. Ideas?
There is a subtle difference between "symbolic expressions" and "callable symbolic expressions", which are also termed "functions". Writing
On the other hand, writing
The way you define your finction determines what kind of expression the corresponding Hessian is; note the difference in syntax below:
Second method, making
Asked: Nov 26 '10
Seen: 242 times
Last updated: Nov 28 '10
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.