Skip to content

Commit 375c948

Browse files
committed
fix error in restriction_mat check
1 parent 8f6c636 commit 375c948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ check_restriction_mat <- function(matrix, name) {
310310
if (any(matrix < 0)) {
311311
stop(paste(name, " must be a non-negative matrix."))
312312
}
313-
if (dim(matrix) != c(length(data), length(data))) {
313+
if (any(dim(matrix) != c(length(data), length(data)))) {
314314
stop(paste(name, " must be of the same dimensions as data."))
315315
}
316316
}

0 commit comments

Comments
 (0)