Skip to content

Commit

Permalink
Merge pull request #132 from jrafailov/master
Browse files Browse the repository at this point in the history
matrix coercion to vector when nrow = 2 bug fix
  • Loading branch information
jrafailov authored May 6, 2024
2 parents 89e142d + 8527bd0 commit b552cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ convex.basis = function(A,
H = combs %*% K_last;

# remove duplicated rows in H (with respect to sparsity)
H = H[!duplicated(as.matrix(H)>ZERO), ];
H = H[!duplicated(as.matrix(H)>ZERO), , drop = F];

# remove rows in H that have subsets in H (with respect to sparsity) ..
if ((as.numeric(nrow(H))*as.numeric(nrow(H)))>maxchunks){
Expand Down

0 comments on commit b552cdb

Please sign in to comment.