Public Member Functions
JIT_Matrix< _Field, JIT_EntryGenerator > Class Template Reference

example of a blackbox that is space efficient, though not time efficient. More...

#include <jit-matrix.h>

Public Member Functions

 JIT_Matrix (const _Field &F, const size_t m, const size_t n, const JIT_EntryGenerator &JIT)
 m by n matrix is constructed. More...

Detailed Description

template<class _Field, class JIT_EntryGenerator>
class LinBox::JIT_Matrix< _Field, JIT_EntryGenerator >

example of a blackbox that is space efficient, though not time efficient.

just in time matrix.

the matrix itself is not stored in memory. rather, an entrygenerator function is called to provide the entries. the entry generator is called once for each entry during an apply or applytranspose operation.

An toy example of its use is the Hilbert matrix, whose $i,j$ entry is generated by the formula $1/(i+j+2)$ in zero based indexing. The motivating examples were matrices also defined by formula, the Paley type matrices.

See Also
{MSW07}% ISSAC 07 paper In that context block structured turned out to be essential and the JIT_Matrix class is primarily intended for block structured matrices, the JIT entries being matrix blocks.
_Fieldonly need provide the init() and axpyin() functions.
JIT_EntryGeneratorgen() is a function object defining the matrix by providing gen(e, i, j) which sets field element e to the i,j entry of the matrix. Indexing is zero based.

Constructor & Destructor Documentation

JIT_Matrix ( const _Field F,
const size_t  m,
const size_t  n,
const JIT_EntryGenerator &  JIT 

m by n matrix is constructed.

JIT(Field::Element& e, size_t i, size_t j) is a function object which assigns the i,j entry to e (and returns a reference to e) and must be valid for 0 <= i < m, 0 <= j < n.

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