[eigen] Tensor Module: TensorBase, derived() not accessible?

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


I am trying to write a general function for a tensor

as used for eigen i did this like so:


template< typename Derived >
void modifiyData(const TensorBase<Derived, WriteAccessors> & m){

    std::cout << m.derived().dimensions();

}


Unfortunately, this does not compile since derived() is  protected in

TensorBase<Derived, WriteAccessors>

Could somebody enlighten me, how to write a general template function accepting a tensor?
Or is this not yet supported?



Thanks  a lot for your help!



BR Gabriel





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/