CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
cuv::matrix< __value_type, __index_type > Class Template Reference

Basic matrix class. More...

#include <matrix.hpp>

Inheritance diagram for cuv::matrix< __value_type, __index_type >:
Inheritance graph
[legend]

Public Types

typedef __value_type value_type
 Type of the entries of matrix.
typedef __index_type index_type
 Type of indices.

Public Member Functions

 matrix (const index_type &h, const index_type &w)
 Basic constructor: set width and height of matrix but do not allocate any memory.
 matrix (const matrix< value_type, index_type > &m)
 Copy Constructor.
matrix< value_type, index_type > & operator= (const matrix< value_type, index_type > &m)
 assignment operator
virtual ~matrix ()
void resize (const index_type &h, const index_type &w)
 Resizing matrix: changing width and height without changing memory layout.
index_type w () const
 Return matrix width.
index_type h () const
 Return matrix height.
index_type n () const
 Return number of entries in matrix.

Protected Attributes

index_type m_width
 Width of matrix.
index_type m_height
 Heigth of matrix.

Friends

template<class Archive , class V , class I >
void serialize (Archive &, dia_matrix< V, host_memory_space, I > &, unsigned int)
 serialization function to save matrix

Detailed Description

template<class __value_type, class __index_type>
class cuv::matrix< __value_type, __index_type >

Basic matrix class.

This matrix class is the parent of all other matrix classes and has all the basic attributes that all matrices share. This class is never actually instanciated.

Definition at line 50 of file matrix.hpp.

Constructor & Destructor Documentation

template<class __value_type, class __index_type>
cuv::matrix< __value_type, __index_type >::matrix ( const index_type h,
const index_type w 
)
inline

Basic constructor: set width and height of matrix but do not allocate any memory.

Parameters
hHeight of matrix
wWidth of matrix

Definition at line 66 of file matrix.hpp.

template<class __value_type, class __index_type>
virtual cuv::matrix< __value_type, __index_type >::~matrix ( )
inlinevirtual

< Empty destructor

Definition at line 87 of file matrix.hpp.

Member Function Documentation

template<class __value_type, class __index_type>
void cuv::matrix< __value_type, __index_type >::resize ( const index_type h,
const index_type w 
)
inline

Resizing matrix: changing width and height without changing memory layout.

Parameters
hNew height of matrix
wNew width of matrix

Definition at line 95 of file matrix.hpp.


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