Opened 10 years ago

Closed 9 years ago

## #13570 closed PLEASE CHANGE (invalid)

# Matrix Entries Can Be Callable Objects not tested

Reported by: | Steven Tartakovsky | Owned by: | tbd |
---|---|---|---|

Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |

Component: | linear algebra | Keywords: | |

Cc: | Merged in: | ||

Authors: | Reviewers: | ||

Report Upstream: | N/A | Work issues: | |

Branch: | Commit: | ||

Dependencies: | Stopgaps: |

### Description

In the documentation, http://www.sagemath.org/doc/reference/sage/matrix/constructor.html,

it states that matrices can pass in callable objects, though there is no example or test of this here. Is there documentation at least showing a test of this functionality? If not, it probably should be added, if not for the end user, at least to ensure it doesn't break.

In the meanwhile, any tip on getting a matrix like:

['apple', 'frog'] [[3,2] , 3 ]

### Change History (6)

### comment:1 Changed 9 years ago by

Milestone: | sage-5.11 → sage-5.12 |
---|

### comment:2 Changed 9 years ago by

Milestone: | sage-6.1 → sage-6.2 |
---|

### comment:3 Changed 9 years ago by

Component: | PLEASE CHANGE → linear algebra |
---|---|

Milestone: | sage-6.2 → sage-duplicate/invalid/wontfix |

Status: | new → needs_review |

### comment:4 Changed 9 years ago by

Thanks. I ended up solving what I needed to solve and ultimately defined class on which there exists multiplication and addition, and that multiplication is cartesian product and addition is disjoint unions, and it works well.

### comment:5 Changed 9 years ago by

Status: | needs_review → positive_review |
---|

### comment:6 Changed 9 years ago by

Resolution: | → invalid |
---|---|

Status: | positive_review → closed |

**Note:**See TracTickets for help on using tickets.

Replying to startakovsky:

Yes, there is:

I don't think there is special support for matrices

ofcallable objects on which multiplication would act as function application, if that is what you are looking for.