购买后使用极限优化库
每次我保存以下3x3 DenseMatrix
然后检索它,它就变成了0x0矩阵。
我尝试以下方法;谁能解释我做错了什么?
let matrix_file_debug_print(filepath : String, a : DenseMatrix) =
for i = 0 to a.RowCount-1 do
for j = 0 to a.ColumnCount-1 do
System.IO.File.AppendAllText(filepath,a.[i,j].ToString()+",")
System.IO.File.AppendAllText(filepath,"\r\n")
System.IO.File.AppendAllText(filepath,"********************************\r\n")
let readclient = redisClient.As<DenseMatrix>()
readclient.Lists.["ConjCommutative33a"].Add(DenseMatrix.Create(3,3))
readclient.Lists.["ConjCommutative33b"].Add(DenseMatrix.Create(3,3))
let redisgroupa = readclient.Lists.["ConjCommutative33a"]
let redisgroupb = readclient.Lists.["ConjCommutative33b"]
//let redisgroupa = readclient.GetValue("OnlyCommutative33a")
//let redisgroupb = readclient.GetValue("OnlyCommutative33b")
for pgi in 0..groupresult1acc3a.Count-1 do
System.IO.File.AppendAllText(filepath,"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$New Pair$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\r\n")
matrix_file_debug_print(filepath, groupresult1acc3a.[pgi])
matrix_file_debug_print(filepath, groupresult2acc3b.[pgi])
代码完成,在visual studio中我调试它,计数&gt; 0并单击要查看的元素 它是0 * 0矩阵