fml  0.1-0
Fused Matrix Library
fml::univec< T > Class Template Reference

Base vector class. Not meant for direct use. Instead see cpuvec and gpuvec. More...

#include <univec.hh>

Inheritance diagram for fml::univec< T >:
fml::cpuvec< T > fml::gpuvec< T >

Public Member Functions

len_t size () const
 Number of elements in the vector.
 
T * data_ptr ()
 Pointer to the internal array.
 
T * data_ptr () const
 

Protected Member Functions

bool should_free () const
 
void check_index (const len_t i) const
 
void printval (const T val, uint8_t ndigits) const
 
void printval (const int val, uint8_t ndigits) const
 

Protected Attributes

len_t _size
 
T * data
 
bool free_data
 

Detailed Description

template<typename T>
class fml::univec< T >

Base vector class. Not meant for direct use. Instead see cpuvec and gpuvec.


The documentation for this class was generated from the following file: