Skip to content

Evaluation of an expression dealing with Vector #105

@anouarlachheb

Description

@anouarlachheb

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");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions