Another checkpoint.

This commit is contained in:
Dongryeol Lee
2010-12-29 02:38:52 +00:00
parent 130249dbd7
commit cd310e626c
2 changed files with 5 additions and 3 deletions
@@ -59,7 +59,8 @@ class SubDenseMatrix {
ar & n_cols;
for(unsigned int j = 0; j < nodes_->size(); j++) {
if((*nodes_)[j] != NULL && (*nodes_)[j]->is_leaf()) {
if((*nodes_)[j] != NULL && (*nodes_)[j]->is_leaf() &&
(*serialize_points_per_terminal_node_)[j]) {
for(int i = (*nodes_)[j]->begin(); i < (*nodes_)[j]->end(); i++) {
const double *column_ptr = matrix_->GetColumnPtr(i);
for(int k = 0; k < matrix_->n_rows(); k++) {
@@ -84,7 +85,8 @@ class SubDenseMatrix {
}
for(unsigned int j = 0; j < nodes_->size(); j++) {
if((*nodes_)[j] != NULL && (*nodes_)[j]->is_leaf()) {
if((*nodes_)[j] != NULL && (*nodes_)[j]->is_leaf() &&
(*serialize_points_per_terminal_node_)[j]) {
for(int i = (*nodes_)[j]->begin(); i < (*nodes_)[j]->end(); i++) {
double *column_ptr =
const_cast<double *>(matrix_->GetColumnPtr(i));
@@ -125,7 +125,7 @@ bool DistributedKde<DistributedTableType>::ConstructBoostVariableMap_(
"Generate the datasets on the fly of the specified dimension."
)(
"random_generate_n_entries",
boost::program_options::value<int>()->default_value(100),
boost::program_options::value<int>()->default_value(10000),
"Generate the datasets on the fly of the specified number of points."
)(
"densities_out",