I am more than dumb ... but may I be excused for being such an amateur? Not! Haha.
So, I thought I could use the Ldoor matrix directly after stripping off the headers. That part I got right. But I failed to realize in order to use the SparseConvertFromCoordinate I was required to adjust the coordinate format row and column number from 1, 1 to 0, 0 , and, of course, for all subsequent coordinate format rows and columns.
I updated the original code with this part of code which reduces coordinate numbers by 1. And everything ran! Well, at least I got some answers and exit code 0.
// assign forced unwrapping for casting to appropriate arrays
for index in 0...rowcountm1 {
rows32[index] = Int32(rows![index] - 1 )
cols32[index] = Int32(cols![index] - 1 )
datsdouble[index] = Double(dats![index])
}
Topic:
App & System Services
SubTopic:
Core OS
Tags: