Comments (2)
Not clear to me that this is a corruption in FFTW itself rather than a bug in xtensor
.
from fftw3.
@stevengj Wait! I changed my code as the following and the error still exists.
fstream fs_debug;
fs_debug.open("/home/winfred/l1b-pro/data/output/debug-8-7298.csv", ios::in);
vector<float> v_result;
string cell;
while (std::getline(fs_debug, cell, ','))
{
v_result.push_back(stof(cell));
}
// This checks for a trailing comma with no data after it.
if (!fs_debug && cell.empty())
{
}
cout << v_result.size() << endl; // 4096
vector<fftw_complex> result(v_result.size());
fftw_complex *in = reinterpret_cast<fftw_complex *>(fftw_malloc(sizeof(fftw_complex) * v_result.size()));
for (int i = 0; i < v_result.size(); ++i)
{
in[i][0] = v_result[i];
in[i][1] = 0.0;
}
fftw_complex *out = reinterpret_cast<fftw_complex *>(fftw_malloc(sizeof(fftw_complex) * v_result.size()));
fftw_plan plan = fftw_plan_dft_1d(v_result.size(), in, out, FFTW_FORWARD, FFTW_ESTIMATE);
fftw_execute(plan);
fftw_destroy_plan(plan);
from fftw3.
Related Issues (20)
- FFTW3LibraryDepends.cmake missing from autotools build HOT 4
- Error encountered when running 'make' after modifying Makefile.am
- Occasional failures in MPI part of the unit tests on ARM neoverse_v1 HOT 36
- Assessment of the difficulty in porting CPU architecture for fftw3 HOT 1
- FFTW SIMD Support HOT 1
- non-deterministic wisdom output HOT 4
- Link FFTW in Android Studio
- Fftw build failed when open ENABLE_OPENMP HOT 1
- Segmentation fault in check()
- Support DCT/DST-V-VIII HOT 1
- FFTW threads: ld: error: undefined symbol: fftwf_threads_set_callback HOT 3
- `afft`?
- IFFT error HOT 3
- Compile application error
- Compilation Error HOT 3
- SVE Imlementation HOT 1
- Error: Unbound module "Pervasives" HOT 3
- "fftw_execute " case "Segmentation fault" HOT 4
- H
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fftw3.