Skip to content

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.

2 participants