File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Package: spatstat.utils
2- Version: 3.2-2
3- Date: 2026-03-10
2+ Version: 3.2-2.002
3+ Date: 2026-04-15
44Title: Utility Functions for 'spatstat'
55Authors@R: c(person("Adrian", "Baddeley",
66 role = c("aut", "cre"),
Original file line number Diff line number Diff line change 11
2- CHANGES IN spatstat.utils VERSION 3.2-1.001
2+ CHANGES IN spatstat.utils VERSION 3.2-2.002
3+
4+ OVERVIEW
5+
6+ o Internal improvements.
7+
8+ CHANGES IN spatstat.utils VERSION 3.2-2
39
410OVERVIEW
511
Original file line number Diff line number Diff line change @@ -31,4 +31,6 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
3131"2025-05-15" "3.1-4" 42 193 0 3689 2462
3232"2025-07-17" "3.1-5" 42 194 0 3703 2462
3333"2025-09-20" "3.2-0" 42 195 0 3716 2462
34+ "2026-01-08" "3.2-1" 43 196 0 3754 2535
3435"2026-03-10" "3.2-2" 44 197 0 3778 2535
36+ "2026-04-15" "3.2-2.002" 44 197 0 3778 2542
Original file line number Diff line number Diff line change @@ -31,4 +31,6 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
3131"2025-05-15" "3.1-4" 42 193 0 3689 2462
3232"2025-07-17" "3.1-5" 42 194 0 3703 2462
3333"2025-09-20" "3.2-0" 42 195 0 3716 2462
34+ "2026-01-08" "3.2-1" 43 196 0 3754 2535
3435"2026-03-10" "3.2-2" 44 197 0 3778 2535
36+ "2026-04-15" "3.2-2.002" 44 197 0 3778 2542
Original file line number Diff line number Diff line change 1111 Cdiffint
1212 Cnzdiff 'nonzero diff'
1313
14- $Revision: 1.4 $ $Date: 2025/12/29 05:36:18 $
14+ $Revision: 1.7 $ $Date: 2026/04/15 03:57:26 $
1515
1616 */
1717
1818SEXP Cdiffdouble (SEXP rx ) {
19- // diff for long vectors of doubles
20- R_xlen_t n = xlength (rx );
21- R_xlen_t i ;
22- double * x = REAL (rx );
19+ // diff for long vectors of double precision numeric values
20+ R_xlen_t n , i ;
21+ double * x ;
2322 double xcur , xprev ;
23+
24+ x = REAL (rx );
25+ n = xlength (rx );
26+
2427 // compute successive differences, with leading 0
2528 i = 1 ;
2629 xprev = x [i ];
@@ -34,11 +37,13 @@ SEXP Cdiffdouble(SEXP rx) {
3437
3538SEXP Cdiffint (SEXP rx ) {
3639 // diff for long vectors of integers
37- R_xlen_t n = xlength (rx );
38- R_xlen_t i ;
39- // pointer to data
40- int * x = INTEGER (rx );
40+ R_xlen_t n , i ;
41+ int * x ;
4142 int xcur , xprev ;
43+
44+ x = INTEGER (rx );
45+ n = xlength (rx );
46+
4247 // compute successive differences, with leading 0
4348 i = 1 ;
4449 xprev = x [i ];
@@ -52,11 +57,13 @@ SEXP Cdiffint(SEXP rx) {
5257
5358SEXP Cnzdiffint (SEXP rx ) {
5459 // test whether diff() is non-zero (with leading TRUE)
55- R_xlen_t n = xlength (rx );
56- R_xlen_t i ;
57- // pointer to data
58- int * x = INTEGER (rx );
60+ R_xlen_t n , i ;
61+ int * x ;
5962 int xcur , xprev ;
63+
64+ x = INTEGER (rx );
65+ n = xlength (rx );
66+
6067 i = 1 ;
6168 xprev = x [i ];
6269 for (i = 0 ; i < n ; i ++ ) {
You can’t perform that action at this time.
0 commit comments