Am 13.10.2015 um 18:10 schrieb Allin Cottrell:
On Tue, 13 Oct 2015, Sven Schreiber wrote:
> Am 29.09.2015 um 20:32 schrieb Sven Schreiber:
>> Am 29.09.2015 um 18:48 schrieb Allin Cottrell:
>>> (2) When a matrix is used as an argument to a user-defined function,
>>> there are two ways to ensure it is "passed along" to the function
>>> than being copied: give the argument in "pointer" form, or
>>> mark the argument as "const".
> A follow-up on this: I just noticed that example 13.1 in the
> has this function header:
> "function scalar b(const matrix *X)"
> From what you explained here, the pointer form in this example would
> be redundant, right?
Right. That example may have predated the modification whereby "const"
(for pointer-y objects such as matrices) implied pass by reference.
I've just checked that in a version from December that example was still
(Also is a note to self.)