DM& DM::operator=( const DistMatrix<T,MC,STAR>& A ) { DEBUG_ONLY(CSE cse("[VR,STAR] = [MC,STAR]")) DistMatrix<T,VC,STAR> A_VC_STAR( A ); *this = A_VC_STAR; return *this; }
DM& DM::operator=( const DistMatrix<T,MC,STAR>& A ) { DEBUG_CSE DistMatrix<T,VC,STAR> A_VC_STAR( A ); *this = A_VC_STAR; return *this; }
BDM& BDM::operator=( const DistMatrix<T,MC,STAR,BLOCK>& A ) { EL_DEBUG_CSE DistMatrix<T,VC,STAR,BLOCK> A_VC_STAR( A ); *this = A_VC_STAR; return *this; }
BDM& BDM::operator=( const BlockDistMatrix<T,MC,STAR>& A ) { DEBUG_ONLY(CallStackEntry cse("[VR,STAR] = [MC,STAR]")) BlockDistMatrix<T,VC,STAR> A_VC_STAR( A ); *this = A_VC_STAR; return *this; }
const DM& DM::operator=( const DistMatrix<T,MC,MR>& A ) { DEBUG_ONLY(CallStackEntry cse("[VR,* ] = [MC,MR]")) DistMatrix<T,VC,STAR> A_VC_STAR( A ); *this = A_VC_STAR; return *this; }
DM& DM::operator=( const DistMatrix<T,STAR,MR>& A ) { DEBUG_CSE DistMatrix<T> A_MC_MR( A ); DistMatrix<T,VC,STAR> A_VC_STAR( A_MC_MR ); A_MC_MR.Empty(); *this = A_VC_STAR; return *this; }
BDM& BDM::operator=( const DistMatrix<T,VR,STAR,BLOCK>& A ) { DEBUG_ONLY(CSE cse("[MC,MR] = [VR,STAR]")) DistMatrix<T,VC,STAR,BLOCK> A_VC_STAR(this->Grid()); A_VC_STAR.AlignWith( *this ); A_VC_STAR = A; *this = A_VC_STAR; return *this; }
DM& DM::operator=( const DistMatrix<T,VR,STAR>& A ) { DEBUG_ONLY(CallStackEntry cse("[MC,STAR] = [VR,STAR]")) DistMatrix<T,VC,STAR> A_VC_STAR(this->Grid()); A_VC_STAR.AlignColsWith(*this); A_VC_STAR = A; *this = A_VC_STAR; return *this; }
BDM& BDM::operator=( const DistMatrix<T,STAR,MR,BLOCK>& A ) { EL_DEBUG_CSE DistMatrix<T,MC,MR,BLOCK> A_MC_MR( A ); DistMatrix<T,VC,STAR,BLOCK> A_VC_STAR( A_MC_MR ); A_MC_MR.Empty(); *this = A_VC_STAR; return *this; }
DM& DM::operator=( const DistMatrix<T,STAR,MR>& A ) { DEBUG_ONLY(CSE cse("[VR,STAR] = [STAR,MR]")) DistMatrix<T> A_MC_MR( A ); DistMatrix<T,VC,STAR> A_VC_STAR( A_MC_MR ); A_MC_MR.Empty(); *this = A_VC_STAR; return *this; }
DM& DM::operator=( const DistMatrix<T,MC,STAR>& A ) { DEBUG_CSE DistMatrix<T,VC,STAR> A_VC_STAR( A ); DistMatrix<T,VR,STAR> A_VR_STAR( this->Grid() ); A_VR_STAR.AlignColsWith(*this); A_VR_STAR = A_VC_STAR; A_VC_STAR.Empty(); *this = A_VR_STAR; return *this; }
BDM& BDM::operator=( const DistMatrix<T,MR,STAR,BLOCK>& A ) { DEBUG_ONLY(CSE cse("[MC,STAR] = [MR,STAR]")) DistMatrix<T,VR,STAR,BLOCK> A_VR_STAR( A ); DistMatrix<T,VC,STAR,BLOCK> A_VC_STAR( this->Grid() ); A_VC_STAR.AlignColsWith(*this); A_VC_STAR = A_VR_STAR; A_VR_STAR.Empty(); *this = A_VC_STAR; return *this; }
const DM& DM::operator=( const DistMatrix<T,STAR,MR>& A ) { DEBUG_ONLY(CallStackEntry cse("[VR,* ] = [* ,MR]")) std::unique_ptr<DistMatrix<T,MC,MR>> A_MC_MR( new DistMatrix<T,MC,MR>(A) ); std::unique_ptr<DistMatrix<T,VC,STAR>> A_VC_STAR ( new DistMatrix<T,VC,STAR>(*A_MC_MR) ); delete A_MC_MR.release(); // lowers memory highwater *this = *A_VC_STAR; return *this; }
DM& DM::operator=( const DistMatrix<T,MR,STAR>& A ) { DEBUG_ONLY(CallStackEntry cse("[MC,STAR] = [MR,STAR]")) std::unique_ptr<DistMatrix<T,VR,STAR>> A_VR_STAR ( new DistMatrix<T,VR,STAR>(A) ); std::unique_ptr<DistMatrix<T,VC,STAR>> A_VC_STAR ( new DistMatrix<T,VC,STAR>(this->Grid()) ); A_VC_STAR->AlignColsWith(*this); *A_VC_STAR = *A_VR_STAR; delete A_VR_STAR.release(); // lowers memory highwater *this = *A_VC_STAR; return *this; }
DM& DM::operator=( const DistMatrix<T,MR,STAR>& A ) { DEBUG_ONLY(CSE cse("[STAR,MR] = [MR,STAR]")) DistMatrix<T,VR,STAR> A_VR_STAR( A ); DistMatrix<T,VC,STAR> A_VC_STAR( A_VR_STAR ); A_VR_STAR.Empty(); DistMatrix<T> A_MC_MR( this->Grid() ); A_MC_MR.AlignRowsWith( *this ); A_MC_MR = A_VC_STAR; A_VC_STAR.Empty(); *this = A_MC_MR; return *this; }
BDM& BDM::operator=( const DistMatrix<T,STAR,MR,BLOCK>& A ) { EL_DEBUG_CSE DistMatrix<T,MC,MR,BLOCK> A_MC_MR( A ); DistMatrix<T,VC,STAR,BLOCK> A_VC_STAR( A_MC_MR ); A_MC_MR.Empty(); DistMatrix<T,VR,STAR,BLOCK> A_VR_STAR( this->Grid() ); A_VR_STAR.AlignColsWith(*this); A_VR_STAR = A_VC_STAR; A_VC_STAR.Empty(); *this = A_VR_STAR; return *this; }
BDM& BDM::operator=( const BlockDistMatrix<T,VR,STAR>& A ) { DEBUG_ONLY(CallStackEntry cse("[STAR,MR] = [VR,STAR]")) std::unique_ptr<BlockDistMatrix<T,VC,STAR>> A_VC_STAR ( new BlockDistMatrix<T,VC,STAR>(A) ); std::unique_ptr<BlockDistMatrix<T,MC,MR>> A_MC_MR ( new BlockDistMatrix<T,MC,MR>(this->Grid()) ); A_MC_MR->AlignRowsWith(*this); *A_MC_MR = *A_VC_STAR; delete A_VC_STAR.release(); // lowers memory highwater *this = *A_MC_MR; return *this; }