HLIBpro  3.0
TPermCoeffFn< T > Class Template Reference

Eval coefficient function with reordered indices, e.g. change internal to external ordering.

#include <TCoeffFn.hh>

Inheritance diagram for TPermCoeffFn< T >:
TCoeffFn< T >

Public Member Functions

virtual matform_t matrix_format () const
 return format of matrix, e.g. symmetric or hermitian
 
virtual void eval (const TIndexSet &rowis, const TIndexSet &colis, value_t *matrix) const
 
virtual void eval (const std::vector< idx_t > &rowidxs, const std::vector< idx_t > &colidxs, value_t *matrix) const
 
- Public Member Functions inherited from TCoeffFn< T >
 TCoeffFn ()
 default constructor
 
virtual ~TCoeffFn ()
 destructor
 

Member Function Documentation

◆ eval() [1/2]

virtual void eval ( const std::vector< idx_t > &  rowidxs,
const std::vector< idx_t > &  colidxs,
value_t *  matrix 
) const
inlinevirtual

return matrix coefficient for index positions defined by tau and sigma, which may be not be consecutively numbered

Implements TCoeffFn< T >.

◆ eval() [2/2]

virtual void eval ( const TIndexSet rowis,
const TIndexSet colis,
value_t *  matrix 
) const
inlinevirtual

return τ x σ subblock of real valued matrix as dense matrix block in column major format

Reimplemented from TCoeffFn< T >.