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
// circ_shift.h | |
// https://stackoverflow.com/questions/46077242/eigen-modifyable-custom-expression/46301503#46301503 | |
// this file implements circShift, fftshift, and ifftshift for Eigen vectors/matrices. | |
// | |
#pragma once | |
#include <Eigen/Core> | |
template <bool B> using bool_constant = std::integral_constant<bool, B>; |
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
/* | |
* this stuff can go in a header to make std::complex<> available | |
*/ | |
/* compile: | |
clang++ -std=c++11 test3.cpp -I eigen/ -DEIGEN_TOO | |
*/ | |
typedef double real_t; | |
#include <iostream> | |
#include <complex> |
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
function c = mtcombvec(varargin) | |
% my own implementation of combvec for use in octave or without matlab nnet library | |
% | |
% takes args of column-vectors, produces all combinations thereof | |
% | |
% copyright (c) 2018 Michael Tesch, [email protected] | |
% released under the Apache 2.0 Open Source license. | |
if length(varargin)==0 |
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
#/bin/bash | |
set -e | |
SPECFILE=texlive17.spec | |
cat << EOF > "$SPECFILE" | |
Name: texlive-FAKE | |
Version: 2017 | |
Release: 4%{?dist} | |
Summary: Dummy wrapper for manual texlive install | |
License: Artistic 2.0 and GPLv2 and GPLv2+ and LGPLv2+ and LPPL and MIT and Public Domain and UCD and Utopia |
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
// This Source Code Form is subject to the terms of the Mozilla Public | |
// License, v. 2.0. If a copy of the MPL was not distributed with this | |
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
// | |
// Reference: | |
// | |
// Cleve Moler, Charles VanLoan, | |
// Nineteen Dubious Ways to Compute the Exponential of a Matrix, | |
// Twenty-Five Years Later, | |
// SIAM Review, |