<commit_before># Numeric Operations for Swift

This project is just a simple practice on Swift and Accelerate framework.
The swift files contain some basic function used in numeric computation. The main functionality is build upon Accelearate framework which leaverages SIMD of the CPU, which make the codes run faster than native Swift code.

# Testing
Run `make test-osx` on Mac OSX.

# References

- [DFT v.s FFT](https://forums.developer.apple.com/thread/23321)
- [vDSP Guide - DFT](https://developer.apple.com/library/ios/documentation/Performance/Conceptual/vDSP_Programming_Guide/USingDFTFunctions/USingDFTFunctions.html#//apple_ref/doc/uid/TP40005147-CH4-SW1)
    + That is why we use `vDSP_DFT_XXX` rather than `vDSP_fft_XXX`.<commit_msg>Update README.md. Add more references.<commit_after># Numeric Operations for Swift

This project is just a simple practice on Swift and Accelerate framework.
The swift files contain some basic function used in numeric computation. The main functionality is build upon Accelearate framework which leaverages SIMD of the CPU, which make the codes run faster than native Swift code.

# Testing
Run `make test-osx` on Mac OSX.

# References

## Accelerate Framework
- [Framework Reference](https://developer.apple.com/library/mac/documentation/Accelerate/Reference/vDSPRef/)
- [Simple Tutorial by admsyn](https://forum.openframeworks.cc/t/a-guide-to-speeding-up-your-of-app-with-accelerate-osx-ios/10560)

## Fourier Transform
- [DFT v.s FFT](https://forums.developer.apple.com/thread/23321)
- [vDSP Guide - DFT](https://developer.apple.com/library/ios/documentation/Performance/Conceptual/vDSP_Programming_Guide/USingDFTFunctions/USingDFTFunctions.html#//apple_ref/doc/uid/TP40005147-CH4-SW1)
    + That is why we use `vDSP_DFT_XXX` rather than `vDSP_fft_XXX`.
{'fraction_non_alphanumeric': 0.09534368070953436, 'fraction_numerical': 0.019401330376940133, 'mean_word_length': 4.9375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5719183', 'n_tokens_mistral': 620, 'n_tokens_neox': 558, 'n_words': 163}