{"action":"created","issue":{"url":"https://api.github.com/repos/awelkie/RustFFT/issues/2","labels_url":"https://api.github.com/repos/awelkie/RustFFT/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/awelkie/RustFFT/issues/2/comments","events_url":"https://api.github.com/repos/awelkie/RustFFT/issues/2/events","html_url":"https://github.com/awelkie/RustFFT/issues/2","id":55425243,"number":2,"title":"Abstract over sample type","user":{"login":"awelkie","id":6946046,"avatar_url":"https://avatars.githubusercontent.com/u/6946046?v=3","gravatar_id":"","url":"https://api.github.com/users/awelkie","html_url":"https://github.com/awelkie","followers_url":"https://api.github.com/users/awelkie/followers","following_url":"https://api.github.com/users/awelkie/following{/other_user}","gists_url":"https://api.github.com/users/awelkie/gists{/gist_id}","starred_url":"https://api.github.com/users/awelkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awelkie/subscriptions","organizations_url":"https://api.github.com/users/awelkie/orgs","repos_url":"https://api.github.com/users/awelkie/repos","events_url":"https://api.github.com/users/awelkie/events{/privacy}","received_events_url":"https://api.github.com/users/awelkie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/awelkie/RustFFT/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-25T19:00:11Z","updated_at":"2015-04-16T11:18:07Z","closed_at":null,"body":"The FFT functions should be generic over the sample type"},"comment":{"url":"https://api.github.com/repos/awelkie/RustFFT/issues/comments/93710905","html_url":"https://github.com/awelkie/RustFFT/issues/2#issuecomment-93710905","issue_url":"https://api.github.com/repos/awelkie/RustFFT/issues/2","id":93710905,"user":{"login":"awelkie","id":6946046,"avatar_url":"https://avatars.githubusercontent.com/u/6946046?v=3","gravatar_id":"","url":"https://api.github.com/users/awelkie","html_url":"https://github.com/awelkie","followers_url":"https://api.github.com/users/awelkie/followers","following_url":"https://api.github.com/users/awelkie/following{/other_user}","gists_url":"https://api.github.com/users/awelkie/gists{/gist_id}","starred_url":"https://api.github.com/users/awelkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awelkie/subscriptions","organizations_url":"https://api.github.com/users/awelkie/orgs","repos_url":"https://api.github.com/users/awelkie/repos","events_url":"https://api.github.com/users/awelkie/events{/privacy}","received_events_url":"https://api.github.com/users/awelkie/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T11:18:07Z","updated_at":"2015-04-16T11:18:07Z","body":"I tried making it generic a while ago, and I think I got hung up on the casts of f32::consts::PI to the generic type. But other than that, `T` should just need to be `Float`, I think. But it looks like `std::num::Float` is deprecated. Does that mean we're supposed to use the `Float` trait from the `num` crate?\r\n\r\nAnd yeah, having generics is probably the only actual improvement over a C implementation of the FFT. That, and maybe a slightly easier build process for Rust projects."}}