Here are the examples of the python api numpy.clongdouble taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
6 Examples
3
Example 1
def setUp(self):
self.input_dtype = numpy.clongdouble
self.output_dtype = numpy.clongdouble
self.np_fft_comparison = self.reference_fftn
self.direction = 'FFTW_FORWARD'
return
3
Example 2
def setUp(self):
self.input_dtype = numpy.clongdouble
self.output_dtype = numpy.clongdouble
self.np_fft_comparison = self.reference_fftn
return
3
Example 3
def setUp(self):
self.input_dtype = numpy.clongdouble
self.output_dtype = numpy.longdouble
self.np_fft_comparison = numpy.fft.irfft
self.direction = 'FFTW_BACKWARD'
3
Example 4
Project: AWS-Lambda-ML-Microservice-Skeleton Source File: test_linalg.py
def test_complex_high_ord(self):
# gh-4156
d = np.empty((2,), dtype=np.clongdouble)
d[0] = 6 + 7j
d[1] = -6 + 7j
res = 11.615898132184
old_assert_almost_equal(np.linalg.norm(d, ord=3), res, decimal=10)
d = d.astype(np.complex128)
old_assert_almost_equal(np.linalg.norm(d, ord=3), res, decimal=9)
d = d.astype(np.complex64)
old_assert_almost_equal(np.linalg.norm(d, ord=3), res, decimal=5)
0
Example 5
Project: robothon Source File: test_print.py
@dec.knownfailureif(sys.platform == 'win32',
"complex long double print is known to fail on windows")
def test_complex_longdouble(self) :
self._test_complex_type(np.clongdouble)
0
Example 6
Project: AWS-Lambda-ML-Microservice-Skeleton Source File: test_einsum.py
def test_einsum_sums_clongdouble(self):
self.check_einsum_sums(np.clongdouble)