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

Evaluation of an expression dealing with Vector #105

Open
anouarlachheb opened this issue Oct 24, 2023 · 0 comments
Open

Evaluation of an expression dealing with Vector #105

anouarlachheb opened this issue Oct 24, 2023 · 0 comments

Comments

@anouarlachheb
Copy link

Hi,
I am using MathNet.Symbolics .Net Nuget package v 0.24.0

I am trying to evaluate an expression containing Vector variable.
i.e:
<Tlin_Vector = (Tref_Vector - 25) * (2)^(16)> - (Tref_Vector - 25) * (2)^(16)>

I am constructing dynamically (by C#) the variables dictionary.
i.e:

        // create a dense zero-vector of length 8
        var PRef = Vector<double>.Build.Dense(9); // 9 points are needed

        // create a dense zero-vector of length 8
        var TLin = Vector<double>.Build.Dense(9); // 9 points are needed

and then assign them to the dictionary.

My problem is that I catch an exception:
goto IL_0166;
IL_0066:
switch (u.Tag)
{
default:
switch (v.Tag)
{
default:
throw new Exception("not supported");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant