vec:dimension( $vector1 as vec:vector ) as xs:unsignedInt
Returns the dimension of the vector passed in.
xquery version "1.0-ml"; vec:dimension(vec:vector((3.14, 1.59, 2.65))) => 3
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.