Browse Source

optimized ADD::toMatrix to avoid a duplicate operation

main
dehnert 9 years ago
parent
commit
d76d34e3f9
  1. 9
      src/storm/storage/dd/Add.cpp

9
src/storm/storage/dd/Add.cpp

@ -453,12 +453,9 @@ namespace storm {
++i; ++i;
} }
// Use the toMatrix function to compute the number of elements in each row. Using the flag, we prevent // Count the number of elements in the rows.
// it from actually generating the entries in the entry vector. rowIndications = this->notZero().template toAdd<uint_fast64_t>().sumAbstract(columnMetaVariables).toVector(rowOdd);
internalAdd.toMatrixComponents(trivialRowGroupIndices, rowIndications, columnsAndValues, rowOdd, columnOdd, ddRowVariableIndices, ddColumnVariableIndices, false); rowIndications.emplace_back();
// TODO: counting might be faster by just summing over the primed variables and then using the ODD to convert
// the resulting (DD) vector to an explicit vector.
// Now that we computed the number of entries in each row, compute the corresponding offsets in the entry vector. // Now that we computed the number of entries in each row, compute the corresponding offsets in the entry vector.
uint_fast64_t tmp = 0; uint_fast64_t tmp = 0;

|||||||
100:0
Loading…
Cancel
Save