Skip to content

Commit 717c4a6

Browse files
authored
Merge pull request #190 from NREL/matrix_ResizePreserve
matrix.h had unknown function nrows() and ncols() that should not have compiled
2 parents 414fc82 + 6ba2a49 commit 717c4a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66

77
env:
8-
WX_VERSION: '3.2.4'
8+
WX_VERSION: '3.2.8.1'
99
DEFAULT_BRANCH: develop
1010

1111

include/wex/matrix.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ class wxMatrix {
175175
wxMatrix<T> old(*this);
176176
Resize(nr, nc);
177177
Fill(val);
178-
for (size_t r = 0; r < nr && r < old.nrows(); r++)
179-
for (size_t c = 0; c < nc && c < old.ncols(); c++)
178+
for (size_t r = 0; r < nr && r < old.Rows(); r++)
179+
for (size_t c = 0; c < nc && c < old.Cols(); c++)
180180
At(r, c) = old(r, c);
181181
}
182182

0 commit comments

Comments
 (0)