Matrix is a union type, thus it cannot be inherited, at least from F#, since the compiler outputs a class that can be extended from C# (and of course it is implementation dependent...):

using Microsoft.FSharp.Math;

public class M<A> : Matrix<A> { } public class Foo { public static void Main(string[] args) { M<float> m = new M<float>(); } } Why don't you use a function? BTW: Check the definition of Matrix, it is in the gmatrix source file in your F# installation. Antonio

By on 12/2/2007 10:59 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper