3 #ifndef __Array_complex_numbers_H__ 4 #define __Array_complex_numbers_H__ 32 template <
int num_dimensions,
typename elemT>
33 Array<num_dimensions, std::complex<elemT>>&
34 operator*=(Array<num_dimensions, std::complex<elemT>>& lhs,
const elemT& rhs)
36 typename Array<num_dimensions, std::complex<elemT>>::iterator iter1 = lhs.
begin();
37 while (iter1 != lhs.end())
42 template <
int num_dimensions,
typename elemT>
43 Array<num_dimensions, std::complex<elemT>>&
44 operator/=(Array<num_dimensions, std::complex<elemT>>& lhs,
const elemT& rhs)
46 typename Array<num_dimensions, std::complex<elemT>>::iterator iter1 = lhs.
begin();
47 while (iter1 != lhs.end())
52 template <
int num_dimensions,
typename elemT>
53 Array<num_dimensions, std::complex<elemT>>&
54 operator+=(Array<num_dimensions, std::complex<elemT>>& lhs,
const elemT& rhs)
56 typename Array<num_dimensions, std::complex<elemT>>::iterator iter1 = lhs.
begin();
57 while (iter1 != lhs.end())
62 template <
int num_dimensions,
typename elemT>
63 Array<num_dimensions, std::complex<elemT>>&
64 operator-=(Array<num_dimensions, std::complex<elemT>>& lhs,
const elemT& rhs)
66 typename Array<num_dimensions, std::complex<elemT>>::iterator iter1 = lhs.
begin();
67 while (iter1 != lhs.end())
74 assign(std::complex<double>& x,
const int y)
76 x =
static_cast<std::complex<double>
>(y);
80 assign(std::complex<float>& x,
const int y)
82 x =
static_cast<float>(y);
defines the Array class for multi-dimensional (numeric) arrays
iterator begin()
use to initialise an iterator to the first element of the vector
Definition: VectorWithOffset.inl:182