sisi4s
Loading...
Searching...
No Matches
ComplexTensor.hpp
Go to the documentation of this file.
1#ifndef COMPLEX_TENSOR_DEFINED
2#define COMPLEX_TENSOR_DEFINED
3
4#include <math/Complex.hpp>
5#include <util/Tensor.hpp>
6
7namespace sisi4s {
13void fromComplexTensor(Tensor<complex> &c,
14 Tensor<double> &r,
15 Tensor<double> &i);
16
17void fromComplexTensor(Tensor<double> &c, Tensor<double> &r, Tensor<double> &i);
18
22void fromComplexTensor(Tensor<complex> &c, Tensor<double> &r);
23
30void toComplexTensor(Tensor<double> &r, Tensor<double> &i, Tensor<complex> &c);
31
32void toComplexTensor(Tensor<double> &r, Tensor<complex> &c);
33
34void toComplexTensor(Tensor<double> &r, Tensor<double> &c);
35
36void conjugate(Tensor<double> &c);
37
38void conjugate(Tensor<complex> &c);
39
40void conjugate(Tensor<double> &c);
41} // namespace sisi4s
42
43#endif
Definition Algorithm.hpp:10
void toComplexTensor(Tensor< double > &r, Tensor< double > &i, Tensor< complex > &c)
Composes a tensor of complex elements containing of the given tensors of real and imaginary parts....
Definition ComplexTensor.cxx:54
void conjugate(Tensor< double > &c)
Definition ComplexTensor.cxx:96
void fromComplexTensor(Tensor< complex > &c, Tensor< double > &r, Tensor< double > &i)
Decomposes the tensor of complex elements into two tensors containing the real and imaginary parts,...
Definition ComplexTensor.cxx:28