/** * Create an ndarray vector that stores structs * of {@link INDArray} * based on the {@link org.apache.arrow.flatbuf.Tensor} * format * @param allocator the allocator to use * @param name the name of the vector * @param length the number of vectors to store * @return */ public static VarBinaryVector ndarrayVectorOf(BufferAllocator allocator,String name,int length) { VarBinaryVector ret = new VarBinaryVector(name,allocator); ret.allocateNewSafe(); ret.setValueCount(length); return ret; }