Cameron Pulsford wrote:
Hey everyone, I am extremely stumped on this. I have 2 functions..
def _determinant(m):
return m[0][0] * m[1][1] - m[1][0] * m[0][1]
def cofactor(self):
"""Returns the cofactor of a matrix."""
newmatrix = []
for i, minor in enumerate(self.minors()):
ne
On Fri, 2009-05-29 at 15:13 -0400, Cameron Pulsford wrote:
> def _determinant(m):
>return m[0][0] * m[1][1] - m[1][0] * m[0][1]
Given that this has no self argument, I'm assuming this is not a class
method.
> def cofactor(self):
>"""Returns the cofactor of a matrix."""
Given that this d
Hey everyone, I am extremely stumped on this. I have 2 functions..
def _determinant(m):
return m[0][0] * m[1][1] - m[1][0] * m[0][1]
def cofactor(self):
"""Returns the cofactor of a matrix."""
newmatrix = []
for i, minor in enumerate(self.minors()):
newmatrix.append(_determinan