コード例 #1
0
def calcADotGrad(A, t, tVec, phixVec, phiuVec, phipVec, B, C):
    phixt = interpM(t, tVec, phixVec)
    phiut = interpM(t, tVec, phiuVec)
    phipt = interpM(t, tVec, phipVec)
    Bt = interpV(t, tVec, B)

    return phixt.dot(A) + phiut.dot(Bt) + phipt.dot(C)
コード例 #2
0
def calcADotRest(A, t, tVec, phixVec, phiuVec, phipVec, B, C, aux):
    phixt = interpM(t, tVec, phixVec)
    phiut = interpM(t, tVec, phiuVec)
    phipt = interpM(t, tVec, phipVec)
    auxt = interpV(t, tVec, aux)
    Bt = interpV(t, tVec, B)

    return phixt.dot(A) + phiut.dot(Bt) + phipt.dot(C) + auxt
コード例 #3
0
def calcADotRest(A, t, tVec, phixVec, phiuVec, phipVec, B, C, aux):
    #print("In calcADot!")
    phixt = interpM(t, tVec, phixVec)
    phiut = interpM(t, tVec, phiuVec)
    phipt = interpM(t, tVec, phipVec)
    auxt = interpV(t, tVec, aux)
    Bt = interpV(t, tVec, B)
    #print('phixt =',phixt)
    #print('phiut =',phiut)
    #print('Bt =',Bt)

    return phixt.dot(A) + phiut.dot(Bt) + phipt.dot(C) + auxt
コード例 #4
0
def calcLamDotGrad(lam, t, tVec, fxInv, phixInv):
    fxt = interpV(t, tVec, fxInv)
    phixt = interpM(t, tVec, phixInv)

    return phixt.dot(lam) - fxt
コード例 #5
0
def calcLamDotRest(lam, t, tVec, phixInv):
    phixt = interpM(t, tVec, phixInv)
    return phixt.dot(lam)
コード例 #6
0
def calcADotOdeRest(A, t, tVec, phixVec, aux):
    phixt = interpM(t, tVec, phixVec)
    auxt = interpV(t, tVec, aux)

    return phixt.dot(A) + auxt