matrix_A = compressed_matrix(nelem_a(), nelem_a(), nonzeros()); // allocation
matrix_A(uic1, uic1) += -trans; // assignment
matrix_A(uic2, uic2) += -trans; // assignment
************************************************************************************
where all variables (and/or functions), e.g. uic1, uic2, trans, neleme_a(), nonzeros(), etc.. are all well-defined
(this is all been checked thoroughly). Commenting out the two assignment statements for example reduced
my overall run time from 110 seconds to 0 (practically zero), for 80000 runs. Has anyone encountered this
problem and know of a solution? I've heard a lot of stories about how boost::ublas is just not up there in
performance and I certainly hope I am missing something trivial. Do later versions of boost address this
better?
Greatly appreciate any help.
Thanks,
Sunil.