Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
conj.h
Go to the documentation of this file.
1 #ifndef __CONJ_H__
2 #define __CONJ_H__
3 
4 template <typename dtype>
6  return A;
7 }
8 template <>
9 CTF::Matrix< std::complex<float> > conj(CTF::Matrix< std::complex<float> > & A){
11  B["ij"] = CTF::Function< std::complex<float>>([](std::complex<float> a){ return std::conj(a); })(A["ij"]);
12  return B;
13 }
14 template <>
17  B["ij"] = CTF::Function<std::complex<double>>([](std::complex<double> a){ return std::conj(a); })(A["ij"]);
18  return B;
19 }
20 #endif
Matrix class which encapsulates a 2D tensor.
Definition: matrix.h:18
CTF::Matrix< dtype > conj(CTF::Matrix< dtype > &A)
Definition: conj.h:5