Skylark (Sketching Library)  0.1
Public Types | Public Member Functions
skylark::base::computed_matrix_t< MatrixType > Struct Template Reference

#include <computed_matrix.hpp>

List of all members.

Public Types

typedef MatrixType materialized_type
typedef utility::typer_t
< MatrixType >::index_type 
index_type

Public Member Functions

virtual index_type height () const =0
virtual index_type width () const =0
virtual void materialize (materialized_type &Z) const =0
virtual materialized_type materialize () const =0

Detailed Description

template<typename MatrixType>
struct skylark::base::computed_matrix_t< MatrixType >

Defines an interface that allows us to work with computed matrices, i.e. matrices can be materilized as needed. These kind of matrices are attractive if the information needed to materilize the matrix is much smaller than the materilized matrix, and the materilization is relative inexpensive. In that case, using a computed matrix can reduce the memory footprint quite a lot.

Definition at line 17 of file computed_matrix.hpp.


Member Typedef Documentation

Definition at line 19 of file computed_matrix.hpp.

template<typename MatrixType>
typedef MatrixType skylark::base::computed_matrix_t< MatrixType >::materialized_type

Definition at line 18 of file computed_matrix.hpp.


Member Function Documentation

template<typename MatrixType>
virtual index_type skylark::base::computed_matrix_t< MatrixType >::height ( ) const [pure virtual]

Implemented in cmatrix.

template<typename MatrixType>
virtual void skylark::base::computed_matrix_t< MatrixType >::materialize ( materialized_type Z) const [pure virtual]

Implemented in cmatrix.

Referenced by skylark::base::Gemm().

template<typename MatrixType>
virtual materialized_type skylark::base::computed_matrix_t< MatrixType >::materialize ( ) const [pure virtual]

Implemented in cmatrix.

template<typename MatrixType>
virtual index_type skylark::base::computed_matrix_t< MatrixType >::width ( ) const [pure virtual]

Implemented in cmatrix.


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