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

実装にeigenを使用 #2

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

実装にeigenを使用 #2

wants to merge 2 commits into from

Conversation

ryoha000
Copy link
Owner

@ryoha000 ryoha000 commented Jun 1, 2022

問題点

  • 遅くなった
    • 3倍くらい
    • ライブラリがメモリに乗ると早くなるとかがあるかも?
  • 動いてない
    • レビューコメントを参照

}
return spec;
auto a = stft_result.cwiseAbs();
return a.pow(arg->power);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここでreturn a;とするとビルドが通る
return a.pow(arg->power);とするとビルドが通らない(powerのところを2.0とかにしても同じく)

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a.unaryExpr([](double d) { return std::pow(d, arg->power); })で解決

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

Successfully merging this pull request may close these issues.

1 participant