 |
fml
0.1-0
Fused Matrix Library
|
12 #include "../_internals/arraytools/src/arraytools.hpp"
39 template <
typename REAL_IN,
typename REAL_OUT>
48 template <
typename REAL>
58 template <
typename REAL_IN,
typename REAL_OUT>
63 size_t len = (size_t) cpu_in.
nrows() * cpu_in.
ncols();
68 template <
typename REAL>
Matrix class for data held on a single CPU.
Definition: cpumat.hh:36
void cpu2cpu(const cpuvec< REAL_IN > &cpu_in, cpuvec< REAL_OUT > &cpu_out)
Copy data from a CPU object to another.
Definition: copy.hh:40
T * data_ptr()
Pointer to the internal array.
Definition: univec.hh:28
len_t nrows() const
Number of rows.
Definition: unimat.hh:36
void resize(len_t size)
Resize the internal object storage.
Definition: cpuvec.hh:210
void resize(len_t nrows, len_t ncols)
Resize the internal object storage.
Definition: cpumat.hh:233
Vector class for data held on a single CPU.
Definition: cpuvec.hh:31
len_t ncols() const
Number of columns.
Definition: unimat.hh:38
REAL * data_ptr()
Pointer to the internal array.
Definition: unimat.hh:40
Core namespace.
Definition: dimops.hh:10
len_t size() const
Number of elements in the vector.
Definition: univec.hh:26