def all_correlations_fast_no_scipy(y, X):
 X = np.asanyarray(X, float)
 y = np.asanyarray(y, float)
 xy = np.dot(X, y)
 y_ = y.mean()
 ys_ = y.std()
 x_ = X.mean(1)
 xs_ = X.std(1)
 n = float(len(y))
 ys_ += 1e-05
 xs_ += 1e-05
 return ((((xy - ((x_ * y_) * n)) / n) / xs_) / ys_)

def all_correlations_fast_no_scipy ( y , X ) : X = np . asanyarray ( X , float ) y = np . asanyarray ( y , float ) xy = np . dot ( X , y ) y_ = y . mean ( ) ys_ = y . std ( ) x_ = X . mean ( 1 ) xs_ = X . std ( 1 ) n = float ( len ( y ) ) ys_ += 1e-05 xs_ += 1e-05 return ( ( ( ( xy - ( ( x_ * y_ ) * n ) ) / n ) / xs_ ) / ys_ )
cs = all_correlations cs[i] = np .