23namespace vctr::expressions
26template <
size_t extent,
class SrcAType,
class SrcBType>
27requires is::realFloatNumber<ValueType<SrcAType>> && std::same_as<ValueType<SrcAType>, ValueType<SrcBType>>
31 using value_type = std::complex<ValueType<SrcAType>>;
35 VCTR_FORCEDINLINE
constexpr value_type operator[] (
size_t i)
const
44 VCTR_FORCEDINLINE
const value_type* evalNextVectorOpInExpressionChain (value_type* dst)
const
47 platform_vec_ops::AppleAccelerate<value_type>::realImagToComplex (
real.data(),
imag.data(), dst, size());
51 VCTR_FORCEDINLINE
const value_type* evalNextVectorOpInExpressionChain (value_type* dst)
const
54 platform_vec_ops::IntelIPP<value_type>::realImagToComplex (
real.data(),
imag.data(), dst,
sizeToInt (size()));
73template <is::anyVctrOrExpression RealType, is::anyVctrOrExpression ImagType>
77 constexpr auto extent = getCommonExtent<RealType, ImagType>();
Definition: RealImagToComplex.h:29
A combined concept to check if Apple Accelerate is a suitable option for a complex valued floating po...
Definition: ContainerAndExpressionConcepts.h:378
A combined concept to check if Intel IPP is a suitable option for a complex valued floating point bin...
Definition: ContainerAndExpressionConcepts.h:391
constexpr ExpressionChainBuilder< expressions::Imag > imag
Extracts the imaginary parts of the complex source values.
Definition: Imag.h:60
constexpr auto realImagToComplex(SrcType &&src)
Returns an expression that converts a split-complex source into interleaved std::complex values.
Definition: SplitComplexMath.h:206
constexpr ExpressionChainBuilder< expressions::Real > real
Extracts the real parts of the complex source values.
Definition: Real.h:60
The main namespace of the VCTR project.
Definition: Array.h:24
constexpr void assertCommonSize(const A &a, const B &b)
Ensures that both sources have the same size.
Definition: Traits.h:256
typename detail::RealType< std::remove_cvref_t< T > >::Type RealType
If T is any instance of std::complex, this will be the real value_type, otherwise this will be T.
Definition: Traits.h:211
int sizeToInt(size_t size)
Casts the size_t argument to an int.
Definition: PlatformVectorOpsHelpers.h:27
The base class to every expression template.
Definition: ExpressionTemplate.h:37