cannot access dot product between two vectors in new vampyr
Closed this issue · 3 comments
Gabrielgerez commented
The dot product for two vectors containing vp.FunctionTree
cannot be accessed through the new style of vampyr
.
I've tried these two methods
-
vp.dot( [vp.FunctionTree, vp.FunctionTree, vp.FunctionTree], [vp.FunctionTree, vp.FunctionTree, vp.FunctionTree])
-
product_tree = vp.FunctionTree(MRA) vp.dot(product_tree, [vp.FunctionTree, vp.FunctionTree, vp.FunctionTree], [vp.FunctionTree, vp.FunctionTree, vp.FunctionTree])
ilfreddy commented
is that the right function to call? I thought dot would give a scalar out of two MW functions. In other words, the integral of the product.
Gabrielgerez commented
is that the right function to call? I thought dot would give a scalar out of two MW functions. In other words, the integral of the product.
The classic dot product is the sum of the product between the elements of two vectors. Both definitions should be correct. As far as I understand.
stigrj commented
yes, both should be possible
double <- FunctionTree . FunctionTree
FunctionTree <- FunctionTreeVector . FunctionTreeVector
but the latter has dropped out of our interface...