First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 11 years ago

jaia gravatar image

Linear Transformation Matrix is Transposed

I define a linear transformation object using the following syntax:

def f(v):
    l1 = [2*v[0]+3*v[1], 5*v[0]-v[1]]
    v1 = vector(l1)
    return(v1)

lf = linear_transformation(RR^2, RR^2, f)
lf

The output includes the matrix [[2, 5], [3,-1]] instead of [[2,3], [5,-1]]. Is this a bug or am I doing something wrong?

click to hide/show revision 2
No.2 Revision

Linear Transformation Matrix is Transposed

I define a linear transformation object using the following syntax:

def f(v):
    l1 = [2*v[0]+3*v[1], 5*v[0]-v[1]]
    v1 = vector(l1)
    return(v1)

lf = linear_transformation(RR^2, RR^2, f)
lf

The output includes the matrix [[2, 5], [3,-1]] instead of [[2,3], [5,-1]]. Is this a bug or am I doing something wrong?

EDIT: Specifying side="right" doesn't help.

Linear Transformation Matrix is Transposed

I define a linear transformation object using the following syntax:

def f(v):
    l1 = [2*v[0]+3*v[1], 5*v[0]-v[1]]
    v1 = vector(l1)
    return(v1)

lf = linear_transformation(RR^2, RR^2, f)
lf

The output includes the matrix [[2, 5], [3,-1]] instead of [[2,3], [5,-1]]. Is this a bug or am I doing something wrong?

EDIT: Specifying side="right" doesn't help.