def cos(x): vml.py_vzCos(x[0], x[1])
def complex_noreal_cos(x): vml.py_vzCos(x[3], x[4])
def complex_cos(x): vml.py_vzCos(x[1], x[4])
def complex_noimag_cos(x): vml.py_vzCos(x[2], x[4])
def test_vzCos(self): x = np.array([1 + 1j], dtype=np.complex128) y = np.array([42.42], dtype=np.complex128) vml.py_vzCos(x, y) self.assertAlmostEqual(y[0], 0.83373003 - 0.98889771j)