Menu

[r37]: / trunk / include / drovector- / drovector-cast.hpp  Maximize  Restore  History

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 _zrovector */
inline drovector::operator _zrovector()
{
#ifdef CPPL_VERBOSE
std::cerr << "# [MARK] drovector::operator _zrovector()" << std::endl;
#endif//CPPL_VERBOSE
zrovector 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] drovector::operator _zrovector() " << "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.