@@ -113,34 +113,49 @@ module ClMatrix =
113113
114114 member this.NNZ = this.Values.Length
115115
116+ /// <summary >
117+ /// Represents an abstraction over matrix, whose values and indices are in OpenCL device memory.
118+ /// </summary >
116119[<RequireQualifiedAccess>]
117120type ClMatrix < 'a when 'a: struct > =
118121 | CSR of ClMatrix.CSR < 'a >
119122 | COO of ClMatrix.COO < 'a >
120123 | CSC of ClMatrix.CSC < 'a >
121124 | LIL of ClMatrix.LIL < 'a >
122125
126+ /// <summary >
127+ /// Row count.
128+ /// </summary >
123129 member this.RowCount =
124130 match this with
125131 | ClMatrix.CSR matrix -> matrix.RowCount
126132 | ClMatrix.COO matrix -> matrix.RowCount
127133 | ClMatrix.CSC matrix -> matrix.RowCount
128134 | ClMatrix.LIL matrix -> matrix.RowCount
129135
136+ /// <summary >
137+ /// Column count.
138+ /// </summary >
130139 member this.ColumnCount =
131140 match this with
132141 | ClMatrix.CSR matrix -> matrix.ColumnCount
133142 | ClMatrix.COO matrix -> matrix.ColumnCount
134143 | ClMatrix.CSC matrix -> matrix.ColumnCount
135144 | ClMatrix.LIL matrix -> matrix.ColumnCount
136145
146+ /// <summary >
147+ /// Release resources allocated for the matrix.
148+ /// </summary >
137149 member this.Dispose q =
138150 match this with
139151 | ClMatrix.CSR matrix -> ( matrix :> IDeviceMemObject) .Dispose q
140152 | ClMatrix.COO matrix -> ( matrix :> IDeviceMemObject) .Dispose q
141153 | ClMatrix.CSC matrix -> ( matrix :> IDeviceMemObject) .Dispose q
142154 | ClMatrix.LIL matrix -> ( matrix :> IDeviceMemObject) .Dispose q
143155
156+ /// <summary >
157+ /// Number of non-zero elements in matrix.
158+ /// </summary >
144159 member this.NNZ =
145160 match this with
146161 | ClMatrix.CSR matrix -> matrix.NNZ
0 commit comments