Skip to content

Instantly share code, notes, and snippets.

@kmx
kmx / gist:be3f401efbeafdc3fc27
Last active August 29, 2015 14:01
PDL functions
function module description
abs PDL::Ops elementwise absolute value
acos PDL::Math The usual trigonometric function. Works inplace.
acosh PDL::Math The standard hyperbolic function. Works inplace.
and PDL::Ufunc Return the logical and of all elements in a piddle.
and2 PDL::Ops binary and of two piddles
andover PDL::Ufunc Project via and to N-1 dimensions
append PDL::Primitive append two or more piddles by concatenating along their first dimensions
approx PDL::Core test for approximately equal values (relaxed "==")
@kmx
kmx / Dev.pm.diff
Last active August 29, 2015 14:12
PDL - improved ExtUtils::MakeMaker support
diff --git a/Basic/Core/Dev.pm b/Basic/Core/Dev.pm
index 2e67877..5a75b50 100644
--- a/Basic/Core/Dev.pm
+++ b/Basic/Core/Dev.pm
@@ -34,9 +34,22 @@ use English; require Exporter;
pdlpp_postamble_int pdlpp_stdargs_int
pdlpp_postamble pdlpp_stdargs write_dummy_make
unsupported getcyglib trylink
- pdlpp_genpm
+ pdlpp_genpm pdlpp_eumm
cpanm (App::cpanminus) 1.7034 on perl 5.022000 built for MSWin32-x86-multi-thread-64int
Work directory is D:\STRAWB~2\data/.cpanm/work/1433513546.17032
You have make D:\strawberry32\c\bin\dmake.exe
You have LWP 6.13
Falling back to Archive::Tar 2.04
You have D:\sw\misc\unzip.exe
Searching Devel::NYTProf () on cpanmetadb ...
Unpacking Devel-NYTProf-6.01.tar.gz
Entering Devel-NYTProf-6.01
Checking configure dependencies from META.json
@kmx
kmx / FI.pm
Last active October 12, 2015 12:57
PDL::TS + PDL::FI
package PDL::FI;
use 5.010;
use strict;
use warnings;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(
fi_absdiff fi_shift

NAME

PDL::GSL::CDF - PDL interface to GSL Cumulative Distribution Functions

DESCRIPTION

This is an interface to the Cumulative Distribution Function package present in the GNU Scientific Library.

Let us have a continuous random number distributions are defined by a probability density function p(x).