Skip to content

Commit d0e4f23

Browse files
committed
Some fixes and improvements
1 parent 87ea893 commit d0e4f23

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

include/graphblas/algorithms/simulated_annealing_re.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ namespace grb {
472472
}
473473

474474
// add new mask
475-
masks.emplace_back( grb::Vector< bool, backend >( n ) );
475+
masks.emplace_back( grb::Vector< MaskType, backend >( n ) );
476476
auto &new_mask = masks.at(i);
477477
rc = rc ? rc : grb::resize( new_mask, n );
478478
rc = rc ? rc : grb::set< descr >( new_mask, frontier, static_cast< MaskType >(true) );
@@ -594,7 +594,7 @@ namespace grb {
594594

595595
#ifdef TIMING
596596
if( s == 0 ){
597-
std::cerr << "Starting simulated_annealing_RE_ising" << "\n";
597+
std::cerr << "Starting simulated_annealing_RE_Ising" << "\n";
598598
}
599599
auto start = std::chrono::high_resolution_clock::now();
600600
#endif
@@ -658,7 +658,8 @@ namespace grb {
658658
start = std::chrono::high_resolution_clock::now();
659659
#endif
660660

661-
std::vector< grb::Vector< bool, backend > > masks ;
661+
using MaskType = bool;
662+
std::vector< grb::Vector< MaskType, backend > > masks ;
662663
rc = rc ? rc : matrix_partition< descr >( masks, couplings, h, rand, seed );
663664
#ifdef TIMING
664665
end = std::chrono::high_resolution_clock::now();

0 commit comments

Comments
 (0)