A
Alexander Stippler
Hi,
I've several methods which get large objects as parameters like:
qr_decomposition(const DenseMatrix &A)
My question is simple: Should the line above be the preferred way or
should the parameter be given like
qr_decomposition(DoubleDenseMatrix A)
I know the difference in semantics. But does it make some essential
difference
for the compiler? Is it better to have the compiler do the copy or to do it
by oneself inside the method? Any performance differences?
regards,
alex
I've several methods which get large objects as parameters like:
qr_decomposition(const DenseMatrix &A)
My question is simple: Should the line above be the preferred way or
should the parameter be given like
qr_decomposition(DoubleDenseMatrix A)
I know the difference in semantics. But does it make some essential
difference
for the compiler? Is it better to have the compiler do the copy or to do it
by oneself inside the method? Any performance differences?
regards,
alex