MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / columns

Method columns

matrix/matrix_class.py:131–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

129
130 # MATRIX INFORMATION
131 def columns(self) -> list[list[int]]:
132 return [[row[i] for row in self.rows] for i in range(len(self.rows[0]))]
133
134 @property
135 def num_rows(self) -> int:

Callers 1

__mul__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected