xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 静态 Public 属性 | 所有成员列表
xcmath::complex< T > 模板类 参考

Complex number class template 更多...

#include <complex.hpp>

Public 成员函数

 complex (const T &real, const T &imag)
 
 complex (const T &real)
 
 complex ()
 
template<typename Vtp2 >
requires std::convertible_to<Vtp2, T>
 complex (const T &real, const Vtp2 &imag)
 
template<typename Vtp1 >
requires std::convertible_to<Vtp1, T>
 complex (const Vtp1 &real, const T &imag)
 
complex operator+ (const complex &other) const
 
complex operator- (const complex &other) const
 
complex operator- () const
 
complex operator* (const complex &other) const
 
complex operator/ (const complex &other) const
 
template<typename Res = double>
requires concepts::Sqrt<T>
Res mod ()
 
complex< T > inv ()
 
template<class V >
requires std::convertible_to<T, V>
 operator complex< V > ()
 

Public 属性

real
 
imag
 

静态 Public 属性

static constexpr auto Type = TypeName<T>
 

详细描述

template<typename T>
class xcmath::complex< T >

Complex number class template

模板参数
TType of elements in the complex number

在文件 complex.hpp15 行定义.

构造及析构函数说明

◆ complex() [1/5]

template<typename T >
xcmath::complex< T >::complex ( const T &  real,
const T &  imag 
)
inline

在文件 complex.hpp21 行定义.

◆ complex() [2/5]

template<typename T >
xcmath::complex< T >::complex ( const T &  real)
inline

在文件 complex.hpp22 行定义.

◆ complex() [3/5]

template<typename T >
xcmath::complex< T >::complex ( )
inline

◆ complex() [4/5]

template<typename T >
template<typename Vtp2 >
requires std::convertible_to<Vtp2, T>
xcmath::complex< T >::complex ( const T &  real,
const Vtp2 &  imag 
)
inline

在文件 complex.hpp31 行定义.

◆ complex() [5/5]

template<typename T >
template<typename Vtp1 >
requires std::convertible_to<Vtp1, T>
xcmath::complex< T >::complex ( const Vtp1 &  real,
const T &  imag 
)
inline

在文件 complex.hpp35 行定义.

成员函数说明

◆ inv()

template<typename T >
complex< T > xcmath::complex< T >::inv ( )
inline

◆ mod()

template<typename T >
template<typename Res = double>
requires concepts::Sqrt<T>
Res xcmath::complex< T >::mod ( )
inline

在文件 complex.hpp64 行定义.

引用了 xcmath::complex< T >::imag , 以及 xcmath::complex< T >::real.

◆ operator complex< V >()

template<typename T >
template<class V >
requires std::convertible_to<T, V>
xcmath::complex< T >::operator complex< V > ( )
inline

在文件 complex.hpp77 行定义.

引用了 xcmath::complex< T >::imag , 以及 xcmath::complex< T >::real.

◆ operator*()

template<typename T >
complex xcmath::complex< T >::operator* ( const complex< T > &  other) const
inline

◆ operator+()

template<typename T >
complex xcmath::complex< T >::operator+ ( const complex< T > &  other) const
inline

◆ operator-() [1/2]

template<typename T >
complex xcmath::complex< T >::operator- ( ) const
inline

◆ operator-() [2/2]

template<typename T >
complex xcmath::complex< T >::operator- ( const complex< T > &  other) const
inline

◆ operator/()

template<typename T >
complex xcmath::complex< T >::operator/ ( const complex< T > &  other) const
inline

在文件 complex.hpp58 行定义.

类成员变量说明

◆ imag

template<typename T >
T xcmath::complex< T >::imag

◆ real

template<typename T >
T xcmath::complex< T >::real

◆ Type

template<typename T >
constexpr auto xcmath::complex< T >::Type = TypeName<T>
staticconstexpr

在文件 complex.hpp19 行定义.


该类的文档由以下文件生成: