numpy.clongdouble

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 7

Example 1

Project: pyFFTW Source File: test_pyfftw_complex.py
Function: set_up
    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

Example 2

Project: pyFFTW Source File: test_pyfftw_multithreaded.py
Function: set_up
    def setUp(self):

        self.input_dtype = numpy.clongdouble
        self.output_dtype = numpy.clongdouble
        self.np_fft_comparison = self.reference_fftn
        return

Example 3

Project: pyFFTW Source File: test_pyfftw_real_backward.py
Function: set_up
    def setUp(self):

        self.input_dtype = numpy.clongdouble
        self.output_dtype = numpy.longdouble
        self.np_fft_comparison = numpy.fft.irfft

        self.direction = 'FFTW_BACKWARD'

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)

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)

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)