(mongodb >=2.2.0)
MongoDB\BSON\Binary::fromVector — Creates a new binary with subtype MongoDB\BSON\Binary::SUBTYPE_VECTOR from the given array and vector type
$vector, MongoDB\BSON\VectorType $vectorType): MongoDB\BSON\Binaryvector (array)
An array of values representing the vector data. The type of each value must match the type indicated by the vectorType parameter:
vectorType (MongoDB\BSON\VectorType)The vector data type.
Returns a new Binary with subtype MongoDB\BSON\Binary::SUBTYPE_VECTOR.