Implement dlib_vector_length to calculate the euclidean distance of the vectors

It not use the 'length' native versions of dlib, due I have to convert the
array to the vector, which will take the same time, and then I will use the
native method.
This commit is contained in:
Matias De lellis
2020-04-14 09:45:16 -03:00
parent 78819eb815
commit 4a2e4ff112
7 changed files with 94 additions and 8 deletions
+10
View File
@@ -0,0 +1,10 @@
--TEST--
Just test php extension version
--SKIPIF--
<?php if (!extension_loaded("pdlib")) print "skip"; ?>
--FILE--
<?php
var_dump(phpversion('pdlib'));
?>
--EXPECT--
string(5) "1.0.2"