mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
do not initialize Complex to zero
This commit is contained in:
parent
c4b837b045
commit
277af07511
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ class Complex
|
|||
T re, im;
|
||||
public:
|
||||
typedef T value_type;
|
||||
constexpr Complex() : re(0), im(0) {}
|
||||
constexpr Complex() /*: re(0), im(0)*/ {}
|
||||
constexpr Complex(T r) : re(r), im(0) {}
|
||||
constexpr Complex(T r, T i) : re(r), im(i) {}
|
||||
constexpr T real() const { return re; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue