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

Probably minor issue: repeated elseif with same condition #138

Open
chsquare opened this issue Nov 15, 2023 · 1 comment
Open

Probably minor issue: repeated elseif with same condition #138

chsquare opened this issue Nov 15, 2023 · 1 comment

Comments

@chsquare
Copy link

Hi Bene and Olaf,

I just noticed that cfg.method if-block within uf_glmfit function has two times 'matlab' and two times 'pinv' with slightly different code.

if strcmp(cfg.method,'matlab') % save time

elseif strcmp(cfg.method,'matlab') % save time

elseif strcmp(cfg.method,'pinv')

elseif strcmp(cfg.method,'pinv')

The output is probably (more or less) the same in both cases, but perhaps still something you want to fix.

Best,
Christoph

@behinger
Copy link
Member

ha! good catch. I had used those for testing speed of several implementations. Probably I got confused and just let them stand here.

We can simply remove the later one, there is no improvement to be expected exactly as you said.

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

No branches or pull requests

2 participants