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

PCA: Invalid memory access when specifiying the dimensions #727

Closed
palonso opened this issue May 22, 2018 · 0 comments
Closed

PCA: Invalid memory access when specifiying the dimensions #727

palonso opened this issue May 22, 2018 · 0 comments

Comments

@palonso
Copy link
Contributor

palonso commented May 22, 2018

In PCA, featVector is defined as a matrix of size 1 x inputFeatureSize,

Array2D<Real> featVector(1,bands, 0.0);

However, in this line featVector is implicitly resized to 1 x outputFeatureSize,
featVector = matmult(featVector, reducedEig);

This causes an invalid memory access on the second iteration of the loop when inputFeatureSize != outputFeatureSize.

To reproduce the error set the parameter dimensions to anything smaller than the input feature size on any PCA routine.

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