def test_aligned_mem_complex():
 a = zeros(1608, dtype=np.uint8)
 z = np.frombuffer(a.data, offset=8, count=100, dtype=complex)
 z.shape = (10, 10)
 eig(z, overwrite_a=True)
 eig(z.T, overwrite_a=True)

def test_aligned_mem_complex ( ) : a = zeros ( 1608 , dtype = np . uint8 ) z = np . frombuffer ( a . data , offset = 8 , count = 100 , dtype = complex ) z . shape = ( 10 , 10 ) eig ( z , overwrite_a = True ) eig ( z . T , overwrite_a = True )
check that complex objects dont need to be completely aligned .