Programming Parallel Computers 2019

Exercise CP: correlated pairs

Overview

In this task, we are given m input vectors, each with n numbers. Our task is to calculate the correlation between every pair of input vectors.

Examples

Input: vector i = row i of the image.

Output: red pixel at (ij) = positive correlation between rows i and j, blue pixel = negative correlation.

Input Output
Input Output
Input Output
Input Output
Input Output