void ThreeValued( AbstractBlockDistMatrix<T>& A, Int m, Int n, double p ) { DEBUG_ONLY(CSE cse("ThreeValued")) A.Resize( m, n ); if( A.RedundantRank() == 0 ) ThreeValued( A.Matrix(), A.LocalHeight(), A.LocalWidth(), p ); Broadcast( A, A.RedundantComm(), 0 ); }
void Lotkin( AbstractBlockDistMatrix<F>& A, Int n ) { DEBUG_ONLY(CallStackEntry cse("Lotkin")) Hilbert( A, n ); // Set first row to all ones if( A.ColShift() == 0 ) { const Int localWidth = A.LocalWidth(); for( Int jLoc=0; jLoc<localWidth; ++jLoc ) A.SetLocal( 0, jLoc, F(1) ); } }