K Means, Kernel Trick, Clustering, Unsupervised Clustering, Data Science.
(vector dimension) x K (number of clusters). With all the above formulations, you can see matrix multiplying X and B gives a new matrix, where each column is the sum of the vectors in each cluster. Then, multiplying with D gives each cluster centroid on the columns, where the cluster centroid is