* Produces an svec from an array */
| 337 | * Produces an svec from an array |
| 338 | */ |
| 339 | SvecType *svec_from_float8arr(float8 *array, int dimension) |
| 340 | { |
| 341 | SparseData sdata = float8arr_to_sdata(array,dimension); |
| 342 | SvecType *result = svec_from_sparsedata(sdata,true); |
| 343 | return result; |
| 344 | } |
| 345 | |
| 346 | /** |
| 347 | * Makes an empty svec with sufficient memory allocated for the input number |
no test coverage detected