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

Overly restrictive Environment.compare #6

Open
acappiello opened this issue Jun 24, 2013 · 0 comments
Open

Overly restrictive Environment.compare #6

acappiello opened this issue Jun 24, 2013 · 0 comments
Labels

Comments

@acappiello
Copy link
Owner

This code will not detect identical permutations.

For example:

%% Bug demonstration.
x = Environment;
x.ncharge = 2;
x.rho = [10 15];
x.r = [1 2; 3 4; 5 6];

y = Environment;
y.ncharge = 2;
y.rho = [15 10];
y.r = [2 1; 4 3; 6 5];

disp(x.compare(y));

However, I can't imagine that this is a common case.

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

No branches or pull requests

1 participant