Skip to content

Instantly share code, notes, and snippets.

View arnaghosh's full-sized avatar
:shipit:
Meeting deadlines

Arna Ghosh arnaghosh

:shipit:
Meeting deadlines
  • McGill University
  • Montreal
View GitHub Profile
@rmarkello
rmarkello / permcca.py
Last active February 26, 2022 17:30
Python implementation of PermCCA (https://github.com/andersonwinkler/PermCCA)
# -*- coding: utf-8 -*-
"""
Python implementation of PermCCA (https://github.com/andersonwinkler/PermCCA),
licensed under GPLv3 (https://www.gnu.org/licenses/gpl-3.0.en.html) as a
derivative of the original MATLAB code.
Since the Schur decomposition is non-unique there are numerical differences
betwen the MATLAB code and this implementation.
This is a rough translation so there are likely a few bugs, but it generates