NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ operator=()

template<typename T >
distributed_timestep_array< T > & cntr::distributed_timestep_array< T >::operator= ( const distributed_timestep_array< T > &  a)

Definition at line 44 of file cntr_distributed_timestep_array_impl.hpp.

References cntr::distributed_timestep_array< T >::data(), cntr::distributed_timestep_array< T >::G(), cntr::distributed_timestep_array< T >::n(), cntr::distributed_timestep_array< T >::nt(), cntr::distributed_timestep_array< T >::ntasks(), cntr::distributed_timestep_array< T >::ntau(), cntr::distributed_timestep_array< T >::sig(), cntr::distributed_timestep_array< T >::size(), cntr::distributed_timestep_array< T >::tid(), and cntr::distributed_timestep_array< T >::tstp().

44  {
45  if(this==&a) return *this;
46  n_=a.n();
47  tid_=a.tid();
48  ntasks_=a.ntasks();
49  data_=a.data(); // note: this copies the data of a
50  tstp_=a.tstp();
51  nt_=a.nt();
52  ntau_=a.ntau();
53  size_=a.size();
54  sig_=a.sig();
55  G_=a.G(); // this copies only the poiters of G_[j], they still point to the data of a
56  // reset G_[j] to point to the new data
57  for(int j=0;j<n_;j++) G_[j].set_to_data(data_.block(j),tstp_,ntau_,size_,sig_);
58  return *this;
59 }
T * block(int j)
Returns the pointer to block j.
+ Here is the call graph for this function: