Skip to content

Commit 0c40308

Browse files
committed
Bug fix in new Markov chain code
1 parent 58e3964 commit 0c40308

5 files changed

Lines changed: 6 additions & 7 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: spatstat.sparse
2-
Version: 3.1-0.001
2+
Version: 3.1-0.002
33
Date: 2026-04-10
44
Title: Sparse Three-Dimensional Arrays and Linear Algebra Utilities
55
Authors@R: c(person("Adrian", "Baddeley",

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
CHANGES IN spatstat.sparse VERSION 3.1-0.001
2+
CHANGES IN spatstat.sparse VERSION 3.1-0.002
33

44
OVERVIEW
55

inst/doc/packagesizes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
1919
"2023-03-12" "3.0-1" 15 48 0 2092 740
2020
"2023-10-24" "3.0-3" 15 48 0 2092 740
2121
"2024-06-21" "3.1-0" 15 48 0 2092 740
22-
"2026-04-10" "3.1-0.001" 16 49 0 2187 908
22+
"2026-04-10" "3.1-0.002" 16 49 0 2187 907

inst/info/packagesizes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
1919
"2023-03-12" "3.0-1" 15 48 0 2092 740
2020
"2023-10-24" "3.0-3" 15 48 0 2092 740
2121
"2024-06-21" "3.1-0" 15 48 0 2092 740
22-
"2026-04-10" "3.1-0.001" 16 49 0 2187 908
22+
"2026-04-10" "3.1-0.002" 16 49 0 2187 907

src/rmarkovchain.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
The indices in 'colindex' and 'rowstart' are zero-based.
2121
22-
$Revision: 1.3 $ $Date: 2026/04/10 03:05:20 $
22+
$Revision: 1.4 $ $Date: 2026/04/10 08:04:44 $
2323
2424
Copyright (c) Adrian Baddeley 2026
2525
GNU Public Licence (>= 2.0)
@@ -30,7 +30,6 @@
3030
#include <R_ext/Utils.h>
3131
#include <math.h>
3232

33-
3433
/* rMCspMF
3534
Run 'M'ultiple independent realisations
3635
from different starting points,
@@ -66,7 +65,7 @@ void rMCspMF(
6665
/* initialise position */
6766
currentpos = startpos[ipoint];
6867
/* run chain */
69-
for(istep = 0; istep <- Nsteps; istep++) {
68+
for(istep = 0; istep < Nsteps; istep++) {
7069
/* transition probabilities from current position */
7170
thisrowstart = rowstart[currentpos];
7271
nextrowstart = ((currentpos+1) < Nrows) ? rowstart[currentpos+1] : Nsparse;

0 commit comments

Comments
 (0)