Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function Matrix Class #58

Open
milroc opened this issue Dec 17, 2012 · 4 comments
Open

Function Matrix Class #58

milroc opened this issue Dec 17, 2012 · 4 comments
Labels

Comments

@milroc
Copy link
Contributor

milroc commented Dec 17, 2012

This is outside of the refactoring being done on the matrix class (and should likely be done farther out in the development cycle (3.0.0 for example is when I'd expect it). I feel like this would require a lot of development for a very low amount of utility (given the power of other currently faster languages).

In case anyone would like to implement this prior to that and I would love some recommendations, here's an introduction on how Mathematica handles it:

f[x_] := 3 x
g[x_] := 7 x
h[x_] := f[x] g[x]
Plot[h[x], {x, -5, 5}]

m[x_] := {{g[x], f[x]}, {h[x], g[x]}}
d[x_] := m[x].m[x]

d[1] (*= {{112, 42}, {294, 112}}*)

If you'd like to implement this, I'd recommend posting on here to help get a better idea on how it may be useful.

It would be likely that we'd have to extend the javascript function object in order to make this work properly.

@milroc
Copy link
Contributor Author

milroc commented Dec 17, 2012

I'm not sure if you guys want to have open issues listing ideas that the community could get started on. If not, I apologize and close the issue.

@Dakkers
Copy link
Contributor

Dakkers commented Sep 18, 2014

@milroc not like this is gonna go anywhere but could you elaborate more on what this is, if you still care? if not, no worries.

@milroc
Copy link
Contributor Author

milroc commented Sep 18, 2014

Hey Dakota, the basic idea is that functions become a primitive inside of the matrix. You can use any matrix operations and treat the matrix as a function (where the variables in putted into the high level function propagates down to the lower functions). Kinda confusing stuff main reason I wanted to do it was because it would be fun to implement, as I said here I doubt it is useful in this language.

Does that help at all?

On Thu, Sep 18, 2014 at 7:20 AM, Dakota St. Laurent
[email protected] wrote:

@milroc not like this is gonna go anywhere but could you elaborate more on what this is, if you still care? if not, no worries.

Reply to this email directly or view it on GitHub:
#58 (comment)

@Dakkers
Copy link
Contributor

Dakkers commented Sep 18, 2014

that makes sense, I commented at around 1 in the morning so I didn't really understand what was going on. considering JS can return arrays of functions, this should be doable in and of itself, and wouldn't need any external implementation, unless you had something else in mind

@Dakkers Dakkers added the idea label Sep 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants