Skylark (Sketching Library)
0.1
|
#include <computed_matrix.hpp>
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 |
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.
typedef utility::typer_t<MatrixType>::index_type skylark::base::computed_matrix_t< MatrixType >::index_type |
Definition at line 19 of file computed_matrix.hpp.
typedef MatrixType skylark::base::computed_matrix_t< MatrixType >::materialized_type |
Definition at line 18 of file computed_matrix.hpp.
virtual index_type skylark::base::computed_matrix_t< MatrixType >::height | ( | ) | const [pure virtual] |
Implemented in cmatrix.
virtual void skylark::base::computed_matrix_t< MatrixType >::materialize | ( | materialized_type & | Z | ) | const [pure virtual] |
Implemented in cmatrix.
Referenced by skylark::base::Gemm().
virtual materialized_type skylark::base::computed_matrix_t< MatrixType >::materialize | ( | ) | const [pure virtual] |
Implemented in cmatrix.
virtual index_type skylark::base::computed_matrix_t< MatrixType >::width | ( | ) | const [pure virtual] |
Implemented in cmatrix.