Example #1
0
def negative(a: Woodbury):
    return Woodbury(B.negative(a.diag), B.negative(a.lr))
Example #2
0
def negative(a: Kronecker):
    return Kronecker(B.negative(a.left), a.right)
Example #3
0
def negative(a: UpperTriangular):
    return UpperTriangular(B.negative(a.mat))
Example #4
0
def negative(a: LowRank):
    return LowRank(a.left, a.right, B.negative(a.middle))
Example #5
0
def negative(a: LowerTriangular):
    return LowerTriangular(B.negative(a.mat))
Example #6
0
def negative(a: Diagonal):
    return Diagonal(B.negative(a.diag))
Example #7
0
def negative(a: Dense):
    return Dense(B.negative(a.mat))
Example #8
0
 def __neg__(self):
     return B.negative(self)
Example #9
0
def subtract(a: AbstractMatrix, b: AbstractMatrix):
    return B.add(a, B.negative(b))