# Matrix-valued functions

I'm looking for a good way to define matrix valued functions.

A function defined as (x1,x2...xn) -----> M(x1,x2....xn), where M is a mxm matrix.

Thanks.

Matrix-valued functions

asked
**
2012-10-24 01:50:16 -0500
**

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I'm looking for a good way to define matrix valued functions.

A function defined as (x1,x2...xn) -----> M(x1,x2....xn), where M is a mxm matrix.

Thanks.

add a comment

0

answered
**
2012-10-24 04:55:20 -0500
**

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Why not this way?

```
sage: def f(x,y):
....: return matrix([[x,y],[x^2,y^2]])
....:
sage: f(1,2)
[1 2]
[1 4]
```

Asked: **
2012-10-24 01:50:16 -0500
**

Seen: **711 times**

Last updated: **Oct 24 '12**

Count number of ones in a set of matrix [closed]

Can sage compute the inverse of a function?

How to create a matrix of same entries?

Printing (large) symbolic matrices

create matrix as having a subset of columns from another matrix

How to substitute a function within derivatives?

how to get the diagonal of a matrix?

how to use file to save a huge list data...and use the list elements from the file in sage?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.