Bug fixed concerning method and optimize. Last method was not read properly and old code defaulted to superci even with nstate not equal to 1.
replacing dscal_ with std::for_each

better to minimize BLAS1 calls
minor
Merge branch 'master' into btas

Conflicts:
	src/math/matrix.cc
	src/math/zmatrix.cc