File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def set(self, components: Collection[float]) -> None:
123
123
"""
124
124
input: new components
125
125
changes the components of the vector.
126
- replace the components with newer one.
126
+ replaces the components with newer one.
127
127
"""
128
128
if len (components ) > 0 :
129
129
self .__components = list (components )
@@ -319,7 +319,7 @@ def __sub__(self, other: Matrix) -> Matrix:
319
319
matrix .append (row )
320
320
return Matrix (matrix , self .__width , self .__height )
321
321
else :
322
- raise Exception ("matrix must have the same dimension!" )
322
+ raise Exception ("matrices must have the same dimension!" )
323
323
324
324
@overload
325
325
def __mul__ (self , other : float ) -> Matrix :
@@ -415,7 +415,7 @@ def determinant(self) -> float:
415
415
if self .__height != self .__width :
416
416
raise Exception ("Matrix is not square" )
417
417
if self .__height < 1 :
418
- raise Exception ("Matrix has no elements " )
418
+ raise Exception ("Matrix has no element " )
419
419
elif self .__height == 1 :
420
420
return self .__matrix [0 ][0 ]
421
421
elif self .__height == 2 :
You can’t perform that action at this time.
0 commit comments