6
votes
Accepted
What language are best for creating data compression algorithms except for C/C++?
In my general experience, the following are required in order to get "reasonable" performance from a programming language:
The ability to specify static types. It's OK if the language also ...
6
votes
Accepted
Inefficient comparisons of custom data type C++
Why not this, which avoids the inequality comparison before the less-than altogether:
...
3
votes
Inefficient comparisons of custom data type C++
Wolfgang's answer is probably the best one, because its almost guaranteed to not screw up in unpredictable ways, and the intent couldn't be more clear. That said...
If the 8 bit integers are unsigned, ...
2
votes
Inefficient comparisons of custom data type C++
I think it would be faster to assemble a 32-bits integer for each operands and compare them, as you initially intended. It will be equivalent to what you did "by hand".
If numbers stored in ...
2
votes
Accepted
Assign and print the results of CHOLMOD package
Cholmod is a bit old-fashioned in that the data arrays are void*, which could be anything. However, you know that the type is ...
1
vote
Accepted
How to initialize Eigen C++ parameters within for-loop?
You used Eigen::MatrixXd::Zero for initialising BetaH. Why not follow the same for initialising the variables inside the loop?
1
vote
Analyzing Numerical Error in C++ Function
@Pedro mentioned running error analysis and introduced the math for propagating error while accounting for unit roundoff. They also gave a Matlab/Octave implementation. @plasmacel noticed that in this ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
c++ × 320linear-algebra × 36
c × 34
libraries × 32
eigen × 31
matrix × 30
python × 19
numerics × 19
parallel-computing × 17
mpi × 17
optimization × 16
reference-request × 16
algorithms × 15
ode × 15
finite-element × 14
matlab × 12
hpc × 12
eigenvalues × 11
simulation × 11
fortran × 11
lapack × 11
computational-physics × 10
software × 10
performance × 10
runge-kutta × 10