Loading...
Searching...
No Matches
complex.h
Go to the documentation of this file.
1#ifndef _BBM_DRJIT_COMPLEX_H_
2#define _BBM_DRJIT_COMPLEX_H_
3
4#include "drjit/complex.h"
5
6/************************************************************************/
7/*! \file complex.h
8
9 \brief Define complex as an alias to drjit::Complex. Also define a custom
10 toString method to mimic the native version's complex output.
11
12*************************************************************************/
13
14namespace backbone {
15
16 /**********************************************************************/
17 /*! \brief Alias drjit::Complex
18 **********************************************************************/
19 template<typename T>
20 using complex = drjit::Complex<T>;
21
22 /**********************************************************************/
23 /*! @{ alias external methods
24 **********************************************************************/
25 using drjit::real;
26 using drjit::imag;
27 using drjit::conj;
28 //! @}
29
30 //! \brief delete atan2 to avoid static_error
31 template<typename T, typename U> auto atan2(drjit::Complex<T> a, drjit::Complex<U> b) = delete;
32
33} // end backbone namespace
34
35#endif /* _BBM_DRJIT_COMPLEX_H_ */
Random number generator; built on top of Drjit.
Definition: backbone.h:53
auto atan2(drjit::Complex< T > a, drjit::Complex< U > b)=delete
delete atan2 to avoid static_error
Complex numbers.
Definition: complex.h:22