Download this file
23 lines (19 with data), 628 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 | //============================================================================
/*! cast operator to _zcovector */
inline dcovector::operator _zcovector()
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] dcovector::operator _zcovector()"
<< std::endl;
#endif//CPPL_VERBOSE
zcovector newvec(L);
for(long i=0; i<L; i++){
newvec.array[i] =std::complex<double>(Array[i],0.0);
}
#ifdef CPPL_DEBUG
std::cerr << "# [NOTE] dcovector::operator _zcovector() "
<< "A new casted matrix at " << newvec.array
<< " has been made." << std::endl;
#endif//CPPL_DEBUG
return _(newvec);
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.