| 933 | } |
| 934 | |
| 935 | FloatVectorArray FloatVectorArrayInit(int maxlen, int dimensions) |
| 936 | { |
| 937 | FloatVectorArray res = (FloatVectorArray)palloc(sizeof(FloatVectorArrayData)); |
| 938 | res->length = 0; |
| 939 | res->maxlen = maxlen; |
| 940 | res->dim = dimensions; |
| 941 | res->items = (float *)palloc0(maxlen * (dimensions * sizeof(float))); |
| 942 | return res; |
| 943 | } |
| 944 | |
| 945 | void FloatVectorArrayFree(FloatVectorArray arr) |
| 946 | { |
no outgoing calls
no test coverage detected