lu_tiled_dist.cpp
// Create a new (initialized) partition of the given size.
Create a new (initialized) partition of the given size.
Create a new ( initialized ) partition of the given size .
partition_data(std::size_t n, std::size_t t, std::size_t i, std::size_t j)
      : data_(
            std::allocator<double>().allocate(n * n), n * n, buffer_type::take)
      , n_(n)
      , t_(t)
      , i_(i)
      , j_(j)
    {
        srand(idx(i, j, n));
        for (std::size_t k = 0; k != n * n; ++k)
            data_[k] = (double) ((rand() % 2000) - 1000) / 100;
    }
partition_data ( std :: size_t n , std :: size_t t , std :: size_t i , std :: size_t j ) : data_ ( std :: allocator < double > ( ) . allocate ( n * n ) , n * n , buffer_type :: take ) , n_ ( n ) , t_ ( t ) , i_ ( i ) , j_ ( j ) { srand ( idx ( i , j , n ) ) ; for ( std :: size_t k = 0 ; k != n * n ; ++ k ) data_ [ k ] = ( double ) ( ( rand ( ) % 2000 ) - 1000 ) / 100 ; }
Create a new (initialized) partition of the given size.
Create a new ( initialized ) partition of the given size .