Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d575b306 authored by hhakim's avatar hhakim
Browse files

Add inplace pyfaust.Faust ops: +=, -=, *=, @=.

parent ecccf93d
Branches
Tags
No related merge requests found
...@@ -631,6 +631,38 @@ class Faust: ...@@ -631,6 +631,38 @@ class Faust:
F = F/s F = F/s
return F return F
def __imatmul__(F, A):
"""
Inplace operator.
F = F @ A
"""
F = F@A
return F
def __imul__(F, A):
"""
Inplace operator.
F = F * A
"""
F = F*A
return F
def __iadd__(F, A):
"""
Inplace operator.
F = F + A
"""
F = F+A
return F
def __isub__(F, A):
"""
Inplace operator.
F = F - A
"""
F = F-A
return F
def __matmul__(F, A): def __matmul__(F, A):
""" """
Multiplies F by A which is a dense numpy.matrix/numpy.ndarray or a Faust object. Multiplies F by A which is a dense numpy.matrix/numpy.ndarray or a Faust object.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment