Skip to content

Commit

Permalink
More info when print
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Oct 5, 2023
1 parent 279098f commit 7f5a6a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/barry/barraydense-meat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,9 @@ template<typename Cell_Type, typename Data_Type> inline void BArrayDense<Cell_Ty
if (check_bounds)
out_of_range(0u, i);

#ifdef __INTEL_LLVM_COMPILER
#pragma code_align 32
#endif
#if defined(__OPENMP) || defined(_OPENMP)
#pragma omp simd
#endif
Expand Down
9 changes: 9 additions & 0 deletions include/barry/model-meat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ inline double likelihood_(
double numerator = 0.0;

// Computing the numerator
#ifdef __INTEL_LLVM_COMPILER
#pragma code_align 32
#endif
#if defined(__OPENMP) || defined(_OPENMP)
#pragma omp simd reduction(+:numerator)
#endif
Expand Down Expand Up @@ -1276,6 +1278,13 @@ inline void Model<Array_Type,Data_Counter_Type,Data_Rule_Type, Data_Rule_Dyn_Typ
printf_barry("Num. of Arrays : %li\n", this->size());
printf_barry("Support size : %li\n", this->size_unique());
printf_barry("Support size range : [%i, %i]\n", min_v, max_v);

if (with_pset)
{
printf_barry("Arrays in powerset : %li\n",
std::accumulate(pset_sizes.begin(), pset_sizes.end(), 0u)
);
}
printf_barry("Transform. Fun. : %s\n", transform_model_fun ? "yes": "no");
printf_barry("Model terms (%li) :\n", this->nterms());
for (auto & cn : this->colnames())
Expand Down

0 comments on commit 7f5a6a7

Please sign in to comment.