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

Remove unnused arrays in TruncBeta* functions #30

Open
jarathomas opened this issue Dec 15, 2023 · 0 comments
Open

Remove unnused arrays in TruncBeta* functions #30

jarathomas opened this issue Dec 15, 2023 · 0 comments

Comments

@jarathomas
Copy link
Contributor

The family of TruncBeta* methods in the InsilicoSampler create arrays, but do not use them:

        // create a new transpose probbase matrix
        double[][] new_probbase = new double[this.C][this.S];
        for(int s=0; s<this.S; s++){
            for(int c=0; c < this.C; c++){new_probbase[c][s] = this.probbase[s][c];}
        }

These should be removed. Here are the instances in the code:

double[][] new_probbase = new double[this.C][this.S];

double[][] new_probbase = new double[this.S][this.C];

double[][] new_probbase = new double[this.S][this.C];

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

1 participant