DSPLib contains a solution for calculating the Euclidean Distance (ED). This library element computes the Euclidean Distance (ED) operation between two input vectors, P and Q, in a vectorized manner for the specified dimension (1D, 2D, 3D, or 4D). This is achieved by leveraging hardware acceleration on AIE, AIE-ML, and AIE-MLv2 devices. The operation supports only the IO-buffer interface, depending on the configuration. The vectorized implementation ensures high performance by processing multiple data points in parallel, utilizing the hardware’s capabilities.
Template parameters are used to configure the top-level graph of the euclidean_distance_graph class.