@@ -72,23 +72,24 @@ and ClSparseVector<'a> =
7272
7373 member this.Dispose ( q ) = ( this :> IDeviceMemObject) .Dispose( q)
7474
75+ [<RequireQualifiedAccess>]
7576type Vector < 'a when 'a: struct > =
76- | VectorSparse of SparseVector < 'a >
77- | VectorDense of 'a option []
77+ | Sparse of SparseVector < 'a >
78+ | Dense of 'a option []
7879 member this.Size =
7980 match this with
80- | VectorSparse vector -> vector.Size
81- | VectorDense vector -> vector.Size
81+ | Sparse vector -> vector.Size
82+ | Dense vector -> vector.Size
8283
8384 override this.ToString () =
8485 match this with
85- | VectorSparse vector -> vector.ToString()
86- | VectorDense vector -> DenseVectorToString vector
86+ | Sparse vector -> vector.ToString()
87+ | Dense vector -> DenseVectorToString vector
8788
8889 member this.ToDevice ( context : ClContext ) =
8990 match this with
90- | VectorSparse vector -> ClVectorSparse <| vector.ToDevice( context)
91- | VectorDense vector -> ClVectorDense <| vector.ToDevice( context)
91+ | Sparse vector -> ClVectorSparse <| vector.ToDevice( context)
92+ | Dense vector -> ClVectorDense <| vector.ToDevice( context)
9293
9394and ClVector < 'a when 'a : struct > =
9495 | ClVectorSparse of ClSparseVector < 'a >
@@ -100,8 +101,8 @@ and ClVector<'a when 'a: struct> =
100101
101102 member this.ToHost ( q : MailboxProcessor < _ >) =
102103 match this with
103- | ClVectorSparse vector -> VectorSparse <| vector.ToHost( q)
104- | ClVectorDense vector -> VectorDense <| vector.ToHost( q)
104+ | ClVectorSparse vector -> Vector.Sparse <| vector.ToHost( q)
105+ | ClVectorDense vector -> Vector.Dense <| vector.ToHost( q)
105106
106107 member this.Dispose ( q ) =
107108 match this with
0 commit comments