Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][HBL] Modulo operation on Matrix #16

Closed
stevenweaver opened this issue Oct 20, 2011 · 3 comments
Closed

[Bug][HBL] Modulo operation on Matrix #16

stevenweaver opened this issue Oct 20, 2011 · 3 comments
Assignees

Comments

@stevenweaver
Copy link
Member

In HBL, an operation like this

a = {{1,2,3,4,5}{5,4,3,2,1}}
b = {{1,2,3,4,5}}
a%b

Will cause a segmentation fault. Perhaps it should fail gracefully.

@ghost ghost assigned stevenweaver Oct 31, 2011
@spond
Copy link
Member

spond commented Nov 9, 2011

Yes, but better yet, it should work:)
This command is supposed to sort rows of a based on the column indices in b, e.g. if you have

a % {{1,2}}

this will sort a on column 2, and break ties using column 3.
In the example above, the indices of columns supplied in b are invalid (can be in 0-4), hence the fail. I'll fix.

@spond
Copy link
Member

spond commented Nov 9, 2011

OK, it fails worse than the indexing issue (which I fixed in my branch). Keep open for now...

@spond spond closed this as completed Jun 20, 2012
@spond
Copy link
Member

spond commented Jun 20, 2012

Fixed in version 2.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants