HLIBpro  2.6
TBFCoeffFn< T_bf > Class Template Reference

Provide matrix coefficients defined by bilinear forms.

#include <TBFCoeffFn.hh>

Inheritance diagram for TBFCoeffFn< T_bf >:
TPermCoeffFn< T_bf::value_t > TCoeffFn< T_bf::value_t >

Public Member Functions

 TBFCoeffFn (const bf_t *bf, const TPermutation *row_perm, const TPermutation *col_perm)
 construct coefficient function for bilinear form bf
 
virtual ~TBFCoeffFn ()
 destructor
 
bool is_complex () const
 return true if function is complex valued
 
matform_t matrix_format () const
 return format of matrix, e.g. symmetric or hermitian
 
virtual void eval (const std::vector< idx_t > &rowidxs, const std::vector< idx_t > &colidxs, value_t *matrix) const
 
- Public Member Functions inherited from TPermCoeffFn< T_bf::value_t >
virtual void eval (const std::vector< idx_t > &, const std::vector< idx_t > &, value_t *) const
 
- Public Member Functions inherited from TCoeffFn< T_bf::value_t >
 TCoeffFn ()
 default constructor
 
virtual ~TCoeffFn ()
 destructor
 

Protected Attributes

const bf_t * _bf
 bilinear form to evaluate
 

Member Function Documentation

◆ eval()

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

evaluate matrix coefficients in rowis × colis and store values in matrix (real valued)