Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed Jul 6, 2024
1 parent 9681ff0 commit b401685
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tivars/types/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def __format__(self, format_spec: str) -> str:
for row in self.matrix()) + "]"

def __iter__(self) -> Iterator[RealEntry]:
"""
:return: An iterator over this matrix's elements in row-major order
"""

for row in self.matrix():
for entry in row:
yield entry
Expand Down Expand Up @@ -109,7 +113,7 @@ def data(self) -> bytes:
@property
def size(self) -> int:
"""
:return: The number of elements in the matrix
:return: The number of elements in this matrix
"""

return self.width * self.height
Expand Down

0 comments on commit b401685

Please sign in to comment.