def fastnorm(x):
    """ Fast Euclidean Norm (L2)

    This version should be faster than numpy.linalg.norm if 
    the dot function uses blas.

    Inputs:
      x -- numpy array

    Output:
      L2 norm from 1d representation of x
    
    """    
    xv = x.ravel()
    return np.dot(xv, xv)**(1/2.)
dataset/ETHPy150Open bolme/pyvision/src/pyvision/features/v1like.py/fastnorm/original