# Revision history [back]

### how to get the transformation matrix for a transformation over 4x4 matrices?

I have the following transformation:

M = MatrixSpace(QQ,4,4)
def f(m):
return matrix([
[m, m, m, m],
[m, m, m, m],
[m, m, m, m],
[m, m, m, m]
])
print linear_transformation(M, M, f)


This is not working - but I can't figure out what linear_transformation is expecting. How can I get this to work? Is this even possible? 2 retagged

### how to get the transformation matrix for a transformation over 4x4 matrices?

I have the following transformation:

M = MatrixSpace(QQ,4,4)
def f(m):
return matrix([
[m, m, m, m],
[m, m, m, m],
[m, m, m, m],
[m, m, m, m]
])
print linear_transformation(M, M, f)


This is not working - but I can't figure out what linear_transformation is expecting. How can I get this to work? Is this even possible? 3 retagged FrédéricC 3497 ●3 ●34 ●68

### how to get the transformation matrix for a transformation over 4x4 matrices?

I have the following transformation:

M = MatrixSpace(QQ,4,4)
def f(m):
return matrix([
[m, m, m, m],
[m, m, m, m],
[m, m, m, m],
[m, m, m, m]
])
print linear_transformation(M, M, f)


This is not working - but I can't figure out what linear_transformation is expecting. How can I get this to work? Is this even possible?