Skip to content

Feature/project matrix - #123

Open
idans124 wants to merge 21 commits into
osherdp:masterfrom
idans124:feature/Project_Matrix
Open

Feature/project matrix#123
idans124 wants to merge 21 commits into
osherdp:masterfrom
idans124:feature/Project_Matrix

Conversation

@idans124

Copy link
Copy Markdown

No description provided.

Comment threadMatrix/Matrix.py
return Matrix(list2tuple)

def __eq__(self, other):
return self.my_list == other.my_list

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the other object isn't matrix? and don't have my_list?

Comment threadMatrix/Matrix.py

__rmul__ = __mul__

def __sub__(self, other):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the sub and the add function look quite similar, try to unify them

Comment threadMatrix/Matrix.py
# ========== list to tuple ===============
for index in range(dim):
new_list[index] = (*new_list[index],)
list2tuple = (*new_list,)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can skip this and just send (*new_list,) to the matrix creation

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@idans124@ranbentzvi