Fix flag checking bug
Merge pull request #73 from untom/fix_flag_check_in_dot

Fix inplace linalg.dot().