@@ -130,13 +130,13 @@ type EWiseAddBenchmarks4Float32() =
130130 Array.blit this.FirstMatrix.Values 0 leftVals 0 this.FirstMatrix.Values.Length
131131
132132 leftCOO <-
133- Matrix.build
134- this.FirstMatrix.RowCount
135- this.FirstMatrix.ColumnCount
136- leftRows
137- leftCols
133+ COOMatrix (
134+ this.FirstMatrix.RowCount,
135+ this.FirstMatrix.ColumnCount,
136+ leftRows,
137+ leftCols,
138138 leftVals
139- COO
139+ ) :> Matrix < float32 >
140140
141141 let rightRows = Array.zeroCreate< int> this.SecondMatrix.Rows.Length
142142 let rightCols = Array.zeroCreate< int> this.SecondMatrix.Columns.Length
@@ -146,13 +146,13 @@ type EWiseAddBenchmarks4Float32() =
146146 Array.blit this.SecondMatrix.Values 0 rightVals 0 this.SecondMatrix.Values.Length
147147
148148 rightCOO <-
149- Matrix.build
150- this.SecondMatrix.RowCount
151- this.SecondMatrix.ColumnCount
152- rightRows
153- rightCols
149+ COOMatrix (
150+ this.SecondMatrix.RowCount,
151+ this.SecondMatrix.ColumnCount,
152+ rightRows,
153+ rightCols,
154154 rightVals
155- COO
155+ ) :> Matrix < float32 >
156156
157157 [<Benchmark>]
158158 member this.EWiseAdditionCOOFloat32 () =
@@ -201,13 +201,13 @@ type EWiseAddBenchmarks4Bool() =
201201 Array.blit this.FirstMatrix.Columns 0 leftCols 0 this.FirstMatrix.Columns.Length
202202
203203 leftCOO <-
204- Matrix.build
205- this.FirstMatrix.RowCount
206- this.FirstMatrix.ColumnCount
207- leftRows
208- leftCols
204+ COOMatrix (
205+ this.FirstMatrix.RowCount,
206+ this.FirstMatrix.ColumnCount,
207+ leftRows,
208+ leftCols,
209209 leftVals
210- COO
210+ ) :> Matrix < bool >
211211
212212 let rightRows = Array.zeroCreate< int> this.SecondMatrix.Rows.Length
213213 let rightCols = Array.zeroCreate< int> this.SecondMatrix.Columns.Length
@@ -216,13 +216,13 @@ type EWiseAddBenchmarks4Bool() =
216216 Array.blit this.SecondMatrix.Columns 0 rightCols 0 this.SecondMatrix.Columns.Length
217217
218218 rightCOO <-
219- Matrix.build
220- this.SecondMatrix.RowCount
221- this.SecondMatrix.ColumnCount
222- rightRows
223- rightCols
219+ COOMatrix (
220+ this.SecondMatrix.RowCount,
221+ this.SecondMatrix.ColumnCount,
222+ rightRows,
223+ rightCols,
224224 rightVals
225- COO
225+ ) :> Matrix < bool >
226226
227227 [<Benchmark>]
228228 member this.EWiseAdditionCOOBool () =
0 commit comments