aboutsummaryrefslogtreecommitdiff
path: root/Tools/External/SetTensor.m
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2011-05-27 16:06:06 +0200
committerIan Hinder <ian.hinder@aei.mpg.de>2011-05-27 16:15:06 +0200
commit431c5d7df8af4fcde2821987b69479ad6cdf1303 (patch)
treeb3cf9c7b2994200463a8bfda34baae5639654d6d /Tools/External/SetTensor.m
parentce3f98a21a00360edd3e0714e283abb2b321448b (diff)
Correct vectorisation errors recently introduced
(1) vec_load cannot be used on constants, it can only be used to access array elements. Replacing UseVectors by False is just a band aid. vec_load was attached to a routine defining and setting a variable; really, it should be attached to a routine accessing array elements, but Kranc doesn't use such an abstraction yet.(2) ToReal is introduced, but must be removed again for integer expressions such as the conditions controlling if statements. I added band-aid code to Conditional[] to remove it. The vectorization routines already handle IfThen, Pow etc., but Conditional isn't visible to them.
Diffstat (limited to 'Tools/External/SetTensor.m')
0 files changed, 0 insertions, 0 deletions