This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
| // A Declarative Pipeline is defined within a 'pipeline' block. | |
| pipeline { | |
| // agent defines where the pipeline will run. | |
| agent { | |
| // This also could have been 'agent any' - that has the same meaning. | |
| label "" | |
| // Other possible built-in agent types are 'agent none', for not running the | |
| // top-level on any agent (which results in you needing to specify agents on | |
| // each stage and do explicit checkouts of scm in those stages), 'docker', |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
| These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
| To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
| USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
| ABSOLUTELY NO WARRANTY. | |
| If you are still reading let's carry on with the code. | |
| sudo apt-get update && \ | |
| sudo apt-get install build-essential software-properties-common -y && \ | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
| #include "FFT.h" | |
| void fft(int *x_in, | |
| std::complex<double> *x_out, | |
| int N) { | |
| // Make copy of array and apply window | |
| for (int i = 0; i < N; i++) { | |
| x_out[i] = std::complex<double>(x_in[i], 0); | |
| x_out[i] *= 1; // Window |
| #include <algorithm> | |
| #include <iostream> | |
| #include <string> | |
| #ifdef _WIN32 | |
| #include <limits.h> | |
| #include <intrin.h> | |
| typedef unsigned __int32 uint32_t; | |
| #else | |
| #include <stdint.h> |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif | |
| #include <windows.h> | |
| #include <tchar.h> | |
| #include <setupapi.h> | |
| #include <initguid.h> |
| # include <stdlib.h> | |
| # include <stdio.h> | |
| # include <math.h> | |
| int do_benchmark ( void ); | |
| double cpu_time ( void ); | |
| void daxpy ( int n, double da, double dx[], int incx, double dy[], int incy ); | |
| double ddot ( int n, double dx[], int incx, double dy[], int incy ); | |
| int dgefa ( double a[], int lda, int n, int ipvt[] ); | |
| void dgesl ( double a[], int lda, int n, int ipvt[], double b[], int job ); |
| #include <GL/glut.h> | |
| void resize(int width, int height) { | |
| // avoid div-by-zero | |
| if (height == 0) { | |
| height = 1; | |
| } | |
| // calculate the aspect ratio |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007