Skip to content

Commit

Permalink
Solved bug at C++ SlidingWindow::setAtWindow method
Browse files Browse the repository at this point in the history
  • Loading branch information
pakozm committed Oct 30, 2013
1 parent 99c3844 commit 3425f81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ChangeList
Master branch release
---------------------

- Solved bug at `SlidingWindow::setAtWindow(...)` C++ method. The matrix offset
wasn't be added to the computed window position.
- Solved bug at `buffered_memory.h`. Such bug introduces an early stop when
reading matrices, ignoring the last lines of files.
- Added `DEPENDENCIES-INSTALLER.sh`.
Expand Down
2 changes: 1 addition & 1 deletion packages/basics/matrix/c_src/matrix-iterators.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ int Matrix<T>::sliding_window::numWindows() const {
template <typename T>
void Matrix<T>::sliding_window::setAtWindow(int windex) {
if (windex < num_windows) {
raw_pos = 0;
raw_pos = m->offset;
for (int i=0; i < m->getNumDim();i++) {
int j = order_step[i];
coords[j] = offset[j] + (windex % num_steps[j])*step[j];
Expand Down

0 comments on commit 3425f81

Please sign in to comment.