implicit constructors

Written by Walter

< >

Rule of thumb to remember, when having a constructor with 1 argument (or multiple arguments with default values). It is safer to declare it explicit. Good explanation about this is here : C++ constructors Just noticed this when implementing my own mplarray class (this should speed up the implementation of the classification of numbers / default conversions and casting operations) And with some tuning it will be much better suited to call lapack and gsl routines with this data representation. So far we are able to match matlab speed with allocation/deallocation (which is not the case with the boost matrix representation, for some reason we are overlooking a bottleneck there which causes the zeros and ones functions to be about 8 times slower than necessary).

Back to archive