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> | |
class master_virtual | |
{ | |
public: | |
virtual void msg() {return;} | |
}; | |
class derived_hi : public master_virtual | |
{ |
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
# -*- coding: utf-8 -*- | |
""" | |
Wrapper around dreadnaut that computes the orbits of a graph. | |
NOTE: Must have installed `dreandaut`. The location of the binary can be passed | |
as an argument to `compute_automorphisms`. | |
Author: Jean-Gabriel Young <[email protected]> | |
""" | |
import subprocess |
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
functions { | |
/** | |
* Computes the value of a Bernstein polynomial of degree N at point t, | |
* using De Casteljau's algorithm. | |
* | |
* @param t Point in [0, 1] where the the polynomial will be evaluated. | |
* @param beta Vector of the real N + 1 coefficients of the polynomial. | |
* @param N Degree of the polynomial. | |
* | |
* @return Value of the polynomial at point t. |
OlderNewer