search for: dropdim

Displaying 1 result from an estimated 1 matches for "dropdim".

Did you mean: dropdims
2012 Dec 10
1
Changing arguments inside .Call. Wise to encourage "const" on all arguments?
...are not protected from "return by reference" damage. Right? Why doesn't the documentation recommend function writers to mark arguments to C functions as const? Isn't that what the return by value policy would suggest? Here's a troublesome example in R src/main/array.c: /* DropDims strips away redundant dimensioning information. */ /* If there is an appropriate dimnames attribute the correct */ /* element is extracted and attached to the vector as a names */ /* attribute. Note that this function mutates x. */ /* Duplication should occur before this is called. */ SEXP DropD...