fml  0.1-0
Fused Matrix Library
fml::unimat< REAL > Class Template Reference

Base matrix class. Not meant for direct use. Instead see cpumat, gpumat, and mpimat. More...

#include <unimat.hh>

Inheritance diagram for fml::unimat< REAL >:
fml::cpumat< REAL > fml::gpumat< REAL > fml::mpimat< REAL >

Public Member Functions

bool is_square () const
 Is the matrix square?
 
len_t nrows () const
 Number of rows.
 
len_t ncols () const
 Number of columns.
 
REAL * data_ptr ()
 Pointer to the internal array.
 
REAL * data_ptr () const
 

Protected Member Functions

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

Protected Attributes

len_t m
 
len_t n
 
REAL * data
 
bool free_data
 

Detailed Description

template<typename REAL>
class fml::unimat< REAL >

Base matrix class. Not meant for direct use. Instead see cpumat, gpumat, and mpimat.


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