#include "WireCellUtil/Testing.h"#include "WireCellUtil/ExecMon.h"#include <Eigen/Core>#include <unsupported/Eigen/FFT>#include <cmath>#include <vector>#include <memory>#include <iostream>Go to the source code of this file.
Typedefs | |
| template<typename Derived > | |
| using | shared_dense = std::shared_ptr< Eigen::DenseBase< Derived > > |
| template<typename Derived > | |
| using | const_shared_dense = std::shared_ptr< const Eigen::DenseBase< Derived > > |
| typedef Eigen::ArrayXXf | array_xxf |
| typedef shared_dense< array_xxf > | shared_array_xxf |
| typedef const_shared_dense< array_xxf > | const_shared_array_xxf |
| typedef Eigen::ArrayXXcf | array_xxc |
| typedef shared_dense< array_xxc > | shared_array_xxc |
Functions | |
| Eigen::ArrayXf | vec2arr (const std::vector< float > &v) |
| Eigen::ArrayXf | filter_array (const Eigen::ArrayXf &arr) |
| Eigen::ArrayXf | select_row (const Eigen::ArrayXXf &arr, int ind, WireCell::ExecMon &em) |
| template<typename Derived > | |
| Eigen::Block< const Derived > | return_block (WireCell::ExecMon &em, const_shared_dense< Derived > dense, int i, int j, int p, int q) |
| void | do_fft (WireCell::ExecMon &em, const array_xxf &arr) |
| void | take_pointer (WireCell::ExecMon &em, const_shared_array_xxf ba) |
| void | test_bigass (WireCell::ExecMon &em) |
| int | main () |
Variables | |
| const int | nbig_rows = 3000 |
| const int | nbig_cols = 10000 |
| typedef Eigen::ArrayXXcf array_xxc |
Definition at line 71 of file test_eigen.cxx.
| typedef Eigen::ArrayXXf array_xxf |
Definition at line 67 of file test_eigen.cxx.
Definition at line 69 of file test_eigen.cxx.
| using const_shared_dense = std::shared_ptr< const Eigen::DenseBase<Derived> > |
Definition at line 65 of file test_eigen.cxx.
| typedef shared_dense<array_xxc> shared_array_xxc |
Definition at line 72 of file test_eigen.cxx.
| typedef shared_dense<array_xxf> shared_array_xxf |
Definition at line 68 of file test_eigen.cxx.
| using shared_dense = std::shared_ptr< Eigen::DenseBase<Derived> > |
Definition at line 63 of file test_eigen.cxx.
| void do_fft | ( | WireCell::ExecMon & | em, |
| const array_xxf & | arr | ||
| ) |
Definition at line 86 of file test_eigen.cxx.
| Eigen::ArrayXf filter_array | ( | const Eigen::ArrayXf & | arr | ) |
Definition at line 45 of file test_eigen.cxx.
| int main | ( | void | ) |
You must specify storage size at construction
this doesn't work:
but literal comma list does:
or, map the data
Definition at line 177 of file test_eigen.cxx.
| Eigen::Block<const Derived> return_block | ( | WireCell::ExecMon & | em, |
| const_shared_dense< Derived > | dense, | ||
| int | i, | ||
| int | j, | ||
| int | p, | ||
| int | q | ||
| ) |
Definition at line 76 of file test_eigen.cxx.
| Eigen::ArrayXf select_row | ( | const Eigen::ArrayXXf & | arr, |
| int | ind, | ||
| WireCell::ExecMon & | em | ||
| ) |
Definition at line 53 of file test_eigen.cxx.
| void take_pointer | ( | WireCell::ExecMon & | em, |
| const_shared_array_xxf | ba | ||
| ) |
Definition at line 126 of file test_eigen.cxx.
| void test_bigass | ( | WireCell::ExecMon & | em | ) |
Definition at line 140 of file test_eigen.cxx.
| Eigen::ArrayXf vec2arr | ( | const std::vector< float > & | v | ) |
Definition at line 34 of file test_eigen.cxx.
| const int nbig_cols = 10000 |
Definition at line 124 of file test_eigen.cxx.
| const int nbig_rows = 3000 |
Definition at line 123 of file test_eigen.cxx.
1.8.11