Hi everyone,
Could you help me any one about this subject.
A=rand(2,3)
2x3 Array{Float64,2}:
0.650875 0.0649599 0.320412
0.801777 0.633312 0.271399
a,b,C=findnz(A)
([1,2,1,2,1,2],[1,1,2,2,3,3],[0.650875,0.801777,0.0649599,0.633312,0.320412,0.271399])
I want to get this matrix
[a b C] --> [Int64 Int64 Float64]
1 1 0.650875
2 1 0.801777
1 2 0.0649599
2 2 0.633312
1 3 0.320412
2 3 0.271399
but I can get [a b C] -->[Float64 Float64 Float64]
1.0 1.0 0.650875
2.0 1.0 0.801777
1.0 2.0 0.0649599
2.0 2.0 0.633312
1.0 3.0 0.320412
2.0 3.0 0.271399
Thank you in advance