Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
Main Page
Modules
Namespaces
Data Structures
Files
File List
Globals
conj.h
Go to the documentation of this file.
1
#ifndef __CONJ_H__
2
#define __CONJ_H__
3
4
template
<
typename
dtype>
5
CTF::Matrix<dtype>
conj
(
CTF::Matrix<dtype>
& A){
6
return
A;
7
}
8
template
<>
9
CTF::Matrix< std::complex<float>
>
conj
(
CTF::Matrix
< std::complex<float> > & A){
10
CTF::Matrix< std::complex<float>
> B(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
<>
15
CTF::Matrix<std::complex<double>
>
conj
(
CTF::Matrix
<std::complex<double>> & A){
16
CTF::Matrix<std::complex<double>
> B(A);
17
B[
"ij"
] =
CTF::Function<std::complex<double>
>([](std::complex<double>
a
){
return
std::conj
(
a
); })(A[
"ij"
]);
18
return
B;
19
}
20
#endif
CTF::Function
Definition:
functions.h:441
CTF::Matrix
Matrix class which encapsulates a 2D tensor.
Definition:
matrix.h:18
ctf.core.a
a
Definition:
core.pyx:385
conj
CTF::Matrix< dtype > conj(CTF::Matrix< dtype > &A)
Definition:
conj.h:5
scalapack_tests
conj.h
Generated on Thu Feb 28 2019 19:22:23 for Cyclops Tensor Framework by
1.8.11