 |
fml
0.1-0
Fused Matrix Library
|
5 #ifndef FML_CPU_CPUHELPERS_H
6 #define FML_CPU_CPUHELPERS_H
12 #include "../_internals/arraytools/src/arraytools.hpp"
37 template <
typename REAL_IN,
typename REAL_OUT>
46 template <
typename REAL>
56 template <
typename REAL_IN,
typename REAL_OUT>
61 size_t len = (size_t) cpu_in.
nrows() * cpu_in.
ncols();
66 template <
typename REAL>
REAL * data_ptr()
Pointer to the internal array.
Definition: unimat.hh:35
T * data_ptr()
Pointer to the internal array.
Definition: univec.hh:26
void cpu2cpu(const cpuvec< REAL_IN > &cpu_in, cpuvec< REAL_OUT > &cpu_out)
Copy data from a CPU object to another.
Definition: cpuhelpers.hh:38
Vector class for data held on a single CPU.
Definition: cpuvec.hh:29
len_t nrows() const
Number of rows.
Definition: unimat.hh:31
len_t size() const
Number of elements in the vector.
Definition: univec.hh:24
len_t ncols() const
Number of columns.
Definition: unimat.hh:33
void resize(len_t size)
Resize the internal object storage.
Definition: cpuvec.hh:179
Matrix class for data held on a single CPU.
Definition: cpumat.hh:34
CPU class helpers.
Definition: cpuhelpers.hh:19
void resize(len_t nrows, len_t ncols)
Resize the internal object storage.
Definition: cpumat.hh:204