Added to test to determine the behavior of the BLAS and intialize the me...

...mory as needed to avoid unexpected NaN's.
why do you put nan here? This would mean the user provided nan, so that would mean keep the nan. Also you compiled the fct with the 2 scalar being 0. So this mean the output is 0! I think you should use this call:

theano.function([aa, yy, xx],gemv_no_inplace(aa, 1., xx, yy, 0.),theano.compile.Mode(optimizer='fast_compile'))(aa_data, yy_data, xx_data)

with xx_data being ones.
Also change yy_data to be [2, 2], to better test.