Download this file
20 lines (16 with data), 591 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | //============================================================================
/*! 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.