12#ifndef ARCCORE_ALINA_VALUETYPECOMPLEX_H
13#define ARCCORE_ALINA_VALUETYPECOMPLEX_H
26#include "arccore/alina/BuiltinBackend.h"
27#include "arccore/alina/ValueTypeInterface.h"
32namespace Arcane::Alina::backend
48namespace Arcane::Alina::math
62template <
class T,
class S>
65 typedef std::complex<S> type;
72 typedef std::complex<T> return_type;
74 static std::complex<T> get(std::complex<T> x)
88 typedef std::complex<T> return_type;
90 static return_type get(std::complex<T> x, std::complex<T> y)
92 return x * std::conj(y);
100 static std::complex<T> get(T c)
102 return std::complex<T>(c, c);
121bool operator<(
const std::complex<V>& a,
const std::complex<V>& b)
123 return std::abs(a) < std::abs(b);
bool operator<(const Item &item1, const Item &item2)
Compare deux entités.
Default implementation for conjugate transpose.
Default implementation for the constant element.
Default implementation for inner product.
Replace scalar type in the static matrix.
Scalar type of a non-scalar type.