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

...mory as needed to avoid unexpected NaN's.
You are computing this for each gemv_no_inplace in the graph. Move this to a separate fct and call it once and reuse that value everytimes.