|
| | ac2matrix_t (algo_comm_t &ac, const std::string &name) |
| | Constructor. More...
|
| |
| void | update () |
| | Update contents of the matrix from the AC space. More...
|
| |
| const std::string & | getname () const |
| | Return name of AC variable/matrix. More...
|
| |
| const std::string & | getusername () const |
| | Return user specified name of AC variable/matrix. More...
|
| |
| void | insert (algo_comm_t &ac) |
| | Insert matrix into an AC space (other than source AC space) More...
|
| |
| | matrix_t (unsigned int nrows, unsigned int ncols, bool b_is_complex=true) |
| | Create a two-dimensional matrix. More...
|
| |
| | matrix_t (const mha_spec_t &spec) |
| | Create a two-dimensional matrix from a spectrum, copy values. More...
|
| |
| | matrix_t (const MHASignal::uint_vector_t &size, bool b_is_complex=true) |
| | Create n-dimensional matrix, descriped by size argument. More...
|
| |
| | matrix_t (const MHASignal::matrix_t &) |
| |
| | matrix_t (const uint8_t *buf, unsigned int len) |
| | Construct from memory area. More...
|
| |
| | ~matrix_t () |
| |
| MHASignal::matrix_t & | operator= (const MHASignal::matrix_t &) |
| |
| MHASignal::matrix_t & | operator= (const MHA_AC::comm_var_t &v) |
| | Fill matrix with data of an AC variable object. More...
|
| |
| MHA_AC::comm_var_t | get_comm_var () |
| | Return a AC communication variable pointing to the data of the current matrix. More...
|
| |
| unsigned int | dimension () const |
| | Return the dimension of the matrix. More...
|
| |
| unsigned int | size (unsigned int k) const |
| | Return the size of the matrix. More...
|
| |
| unsigned int | get_nelements () const |
| | Return total number of elements. More...
|
| |
| bool | is_same_size (const MHASignal::matrix_t &) |
| | Test if matrix has same size as other. More...
|
| |
| bool | iscomplex () const |
| | Return information about complexity. More...
|
| |
| mha_real_t & | real (const MHASignal::uint_vector_t &index) |
| | Access real part of an element in a n-dimensional matrix. More...
|
| |
| mha_real_t & | imag (const MHASignal::uint_vector_t &index) |
| | Access imaginary part of an element in a n-dimensional matrix. More...
|
| |
| mha_complex_t & | operator() (const MHASignal::uint_vector_t &index) |
| | Access complex value of an element in a n-dimensional matrix. More...
|
| |
| const mha_real_t & | real (const MHASignal::uint_vector_t &index) const |
| | Access real part of an element in a n-dimensional matrix. More...
|
| |
| const mha_real_t & | imag (const MHASignal::uint_vector_t &index) const |
| | Access imaginary part of an element in a n-dimensional matrix. More...
|
| |
| const mha_complex_t & | operator() (const MHASignal::uint_vector_t &index) const |
| | Access complex value of an element in a n-dimensional matrix. More...
|
| |
| mha_real_t & | real (unsigned int row, unsigned int col) |
| | Access real part of an element in a two-dimensional matrix. More...
|
| |
| mha_real_t & | imag (unsigned int row, unsigned int col) |
| | Access imaginary part of an element in a two-dimensional matrix. More...
|
| |
| mha_complex_t & | operator() (unsigned int row, unsigned int col) |
| | Access complex value of an element in a two-dimensional matrix. More...
|
| |
| const mha_real_t & | real (unsigned int row, unsigned int col) const |
| | Access real part of an element in a two-dimensional matrix. More...
|
| |
| const mha_real_t & | imag (unsigned int row, unsigned int col) const |
| | Access imaginary part of an element in a two-dimensional matrix. More...
|
| |
| const mha_complex_t & | operator() (unsigned int row, unsigned int col) const |
| | Access complex value of an element in a two-dimensional matrix. More...
|
| |
| unsigned int | get_nreals () const |
| |
| unsigned int | get_index (unsigned int row, unsigned int col) const |
| |
| unsigned int | get_index (const MHASignal::uint_vector_t &index) const |
| |
| unsigned int | numbytes () const |
| | Return number of bytes needed to store into memory. More...
|
| |
| unsigned int | write (uint8_t *buf, unsigned int len) const |
| | Copy to memory area. More...
|
| |
| const mha_real_t * | get_rdata () const |
| | Return pointer of real data. More...
|
| |
| const mha_complex_t * | get_cdata () const |
| | Return pointer of complex data. More...
|
| |
Copy AC variable to a matrix.
This class constructs a matrix of same size as an AC variable and can copy the AC variable to itself. The update() function is real-time safe.