Skip to content

Commit

Permalink
next attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Thorson committed Oct 25, 2024
1 parent f2418b3 commit f882084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/make_dsem_ram.R
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function( sem,
}

# Loop through paths
G_kk = P_kk = sparseMatrix( i=1, j=1, x=0, dims=rep(length(variables)*length(times),2) ) # Make with a zero
P_kk = drop0(sparseMatrix( i=1, j=1, x=0, dims=rep(length(variables)*length(times),2) )) # Make with a zero
#P_kk = new("dgCMatrix")
#P_kk = Matrix()
#P_kk@Dim <- as.integer(rep(length(variables)*length(times),2))
Expand Down Expand Up @@ -369,7 +369,7 @@ function( sem,
}
#rownames(ram) = NULL
#f = \(x) sapply(mat2triplet(drop0(x)),cbind)
f = \(x) matrix(unlist(mat2triplet(drop0(x))),ncol=3)
f = \(x) matrix(unlist(mat2triplet(x)),ncol=3)
ram = rbind( cbind(1, f(P_kk)),
cbind(2, f(G_kk)) )
ram = data.frame( ram, startvalues[ram[,4]] )
Expand Down

0 comments on commit f882084

Please sign in to comment.