inline void Ones( DistMatrix<T,U,V>& A, int m, int n ) { #ifndef RELEASE CallStackEntry entry("Ones"); #endif A.ResizeTo( m, n ); MakeOnes( A ); }
inline void Ones( int m, int n, DistMatrix<T,U,V>& A ) { #ifndef RELEASE PushCallStack("Ones"); #endif A.ResizeTo( m, n ); MakeOnes( A ); #ifndef RELEASE PopCallStack(); #endif }
inline void Lauchli( BlockDistMatrix<T,U,V>& A, Int n, T mu ) { DEBUG_ONLY(CallStackEntry cse("Lauchli")) A.Resize( n+1, n ); auto ABlock = View( A, 0, 0, 1, n ); MakeOnes( ABlock ); std::vector<T> d(n,mu); ABlock = View( A, 1, 0, n, n ); Diagonal( ABlock, d ); }