analysis.py v 2.3.1

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2020-09-19 23:14:46 +00:00
parent 110b82e1dc
commit 6b5de9706e

View File

@ -7,10 +7,12 @@
# current benchmark of optimization: 1.33 times faster # current benchmark of optimization: 1.33 times faster
# setup: # setup:
__version__ = "2.3.0" __version__ = "2.3.1"
# changelog should be viewed using print(analysis.__changelog__) # changelog should be viewed using print(analysis.__changelog__)
__changelog__ = """changelog: __changelog__ = """changelog:
2.3.1:
- fixed bugs in Array class
2.3.0: 2.3.0:
- overhauled Array class - overhauled Array class
2.2.3: 2.2.3:
@ -1064,11 +1066,11 @@ class Array(): # tests on nd arrays independent of basic_stats
def __add__(self, other): def __add__(self, other):
return self.array + other return self.array + other.array
def __sub__(self, other): def __sub__(self, other):
return self.array - other return self.array - other.array
def __neg__(self): def __neg__(self):
@ -1084,15 +1086,15 @@ class Array(): # tests on nd arrays independent of basic_stats
def __mul__(self, other): def __mul__(self, other):
return self.array.dot(other) return self.array.dot(other.array)
def __rmul__(self, other): def __rmul__(self, other):
return self.array.dot(other) return self.array.dot(other.array)
def cross(self, other): def cross(self, other):
return np.cross(self.array, b) return np.cross(self.array, other.array)
def sort(self, array): # depreciated def sort(self, array): # depreciated
warnings.warn("Array.sort has been depreciated in favor of Sort") warnings.warn("Array.sort has been depreciated in favor of Sort")