This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#define vdbg(...) std::cerr << __LINE__ << ":" << #__VA_ARGS__ << " " << (__VA_ARGS__) << '\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.15...3.22) | |
project(passByReference LANGUAGES CXX) | |
find_package(Python COMPONENTS Interpreter Development REQUIRED) | |
include(FetchContent) | |
FetchContent_Declare( | |
Catch2 | |
GIT_SHALLOW TRUE | |
GIT_REPOSITORY https://github.com/catchorg/Catch2.git | |
GIT_TAG v3.3.2) | |
FetchContent_MakeAvailable(Catch2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%% | |
from typing import Iterable | |
import matplotlib.pyplot as plt | |
from matplotlib.patches import Wedge, PathPatch | |
from matplotlib.collections import PatchCollection | |
from matplotlib.path import Path | |
import numpy | |
def _orderByWeight(data_matrix: numpy.ndarray) -> numpy.ndarray: |