Skip to content

Instantly share code, notes, and snippets.

@loiseaujc
loiseaujc / spod.py
Created December 6, 2019 09:03
Python implementation of the spectral proper orthogonal decomposition.
"""
Spectral Proper Orthogonal Decomposition
-----------------------------------------
This module implements the Spectral Proper Orthogonal Decomposition class. The
present implementation corresponds to the batch algorithm originally proposed
in [1]. Note that a streaming algorithm has also been proposed in [2].
References
----------
@r1pper
r1pper / FastLog
Last active October 31, 2023 15:34
Fast float Logarithm in C# using lookup Table
using System;
using System.Runtime.InteropServices;
namespace Test2
{
public static class FastLog
{
[StructLayout(LayoutKind.Explicit)]
private struct Ieee754
{