16,553
社区成员
发帖
与我相关
我的任务
分享
Dim BasMatInverse(UBound(BaseMatrix, 1), UBound(BaseMatrix, 2)) As Double
'Dim i, j As Long '在VB里是不用声明的,直接for就已声明了.
Dim BVCount, VarCount As Integer
'BVSupVector.GetUpperBound(0) '只会返回Integer,你拿Long赋值还是最多只能等于Integer
BVCount = BVSupVector.GetUpperBound(0)
'StaCoeMatrix.GetUpperBound(0) <----------------------|......一个是总下标
VarCount = StaCoeMatrix.GetUpperBound(0) ' |
' |
For i = 0 To BVCount ' |------这样的取下标还准吗?
BasFomVector(i) = StaFomCoeVector(BVSupVector(i)) '|
For j = 0 To VarCount ' |
'StaCoeMatrix(j, BVSupVector(i)) <------------|......这里可以看出是多维数组.
BaseMatrix(j, i) = StaCoeMatrix(j, BVSupVector(i))
Next
Next