I have two vectors MathNet.Numerics.LinearAlgebra.Generic.Vector<double>
, like the following:
Vector<double> v1 = new DenseVector(new double[] { 1, 2, 3 });
Vector<double> v2 = new DenseVector(new double[] { 3, 2, 1 });
I basicly want to CrossProduct them, however couldn't find an official function. I know cross product is a very easy function which I can write myself, but I want to use the API's function.
Both of the below works for me: (Couldn't find such functions in the API.)
Vector<double> result = v1.CrossProduct(v2);
Vector<double> result = Vector.CrossProduct(v1,v2);
I found this, however couldn't find the function when I tried to write it: API Reference
You are accessing the API documentation for Math.NET Iridium, which is a discontinued project. The intention was that the Iridium code base should be integrated into Math.NET Numerics, but it seems that the CrossProduct
functionality has not been transferred yet, as can be seen in these two discussion threads on the Math.NET Numerics Codeplex site.
If you want to use Math.NET Iridium, where the CrossProduct
method is surely available, you can download the most recent source code from here.