Loading TOC...

MarkLogic 12 EA 2 Product Documentation
vec.dimension

vec.dimension(
   vector1 as vec.vector
) as Number

Summary

Returns the dimension of the vector passed in.

Parameters
vector1 The vector to find the dimension of.

Example

  vec.dimension(vec.vector([3.14, 1.59, 2.65]))

  => 3

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.