# NOT RUN {
data(orani) ## Load the data as a 'dgCMatrix' (CCS format)
v <- rep(1, 2529)
### Solving a system of 2529 coupled linear differential equations
system.time(wCCS <- expv(orani, v = v, t = 10))
oraniCOO <- as(orani, "TsparseMatrix") ## Coerce to COO format
### Sidje (1998) reported that the COO format gives a slight increase
### in computational time. Wether this is the case for this example
### depends on the machine used.
system.time(wCOO <- expv(oraniCOO, v = v, t = 10))
print(cbind(wCCS[1:5], wCOO[1:5]), digits = 14)
# }
Run the code above in your browser using DataLab