Beispiel #1
0
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;
}
Beispiel #2
0
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;
}
Beispiel #3
0
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;
}
Beispiel #4
0
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;
}
Beispiel #5
0
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;
}
Beispiel #6
0
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;
}
Beispiel #7
0
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;
}
Beispiel #8
0
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;
}
Beispiel #9
0
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;
}
Beispiel #10
0
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;
}
Beispiel #11
0
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;
}
Beispiel #12
0
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;
}
Beispiel #13
0
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;
}
Beispiel #14
0
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;
}
Beispiel #15
0
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;
}
Beispiel #16
0
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;
}
Beispiel #17
0
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;
}