You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CMSIS-DSP/ComputeGraph/examples/example8/custom.py

14 lines
271 B
Python

import numpy as np
class MyComplex:
def __init__(self,re=0,im=0):
self.re = re
self.im = im
def __str__(self):
return("%f + I %f" % (self.re, self.im))
def __repr__(self):
return("MyComplex(%f,%f)" % (self.re, self.im))