Using Math.Net numerics, you can create matrices and vectors easily. The following section shows how. However, before you can create the vector or the matrix using Math.NET API, you have to reference the library properly. The examples in this chapter run using the F# script.
You have to write the following code at the beginning of the file and then run these in the F# interactive:
You can create a vector as follows:
The vector values must always be float
as per Math.NET. Once you run this in the F# interactive, it will create the following output: