image thumbnail

updated 19 days ago

Symbolic Polynomial Manipulation by John D'Errico

Symbolic polynomial manipulation as an exercise in OOP (symbolic, polynomial, arithmetic)

Sympoly_demos

adjoint(A)

consolidator(x,y,aggregation_mode,tol)

image thumbnail

updated 19 days ago

Variable Precision Integer Arithmetic by John D'Errico

Arithmetic with integers of fully arbitrary size. Arrays and vectors of vpi numbers are supported. (finite field, integer, biginteger)

demo_vpi

base2vpi(B,base)

bin2vpi(B)

image thumbnail

updated 19 days ago

HPF - a big decimal class by John D'Errico

High precision floating point arithmetic, a new class written in MATLAB (hpf, multiple precision, big decimal)

Demo script for my High Precision Floating point decimal

hpf_regression_testing

DefaultDecimalBase(DBaseNew)

image thumbnail

updated 10 months ago

ISFUNCTION by Jos (10584)

true for valid matlab functions (v3.1, feb 2014) (function, isfunction, matlab function)

isfunction(FUN)

image thumbnail

updated 10 months ago

LOGICALEXPAND by Jos (10584)

expand (or shrink) series in a logical vector (v2.0, feb 2014) (logical, find, shrink)

logicalexpand(TF,N)

image thumbnail

updated 10 months ago

HEX2RGB by Jos (10584)

Convert hexadecimal color strings to RGB values (v1.0, feb 2014) (color, hexadecimal, conversion)

hex2rgb(HEX)

image thumbnail

updated 10 months ago

ALLCOMB by Jos (10584)

All combinations of input (v4.0, feb 2014) (matrices, all, combination)

allcomb(varargin)

image thumbnail

updated 11 months ago

LOGICALFIND by Jos (10584)

Find occurrences of consecutive non-zeros in a vector (v1.0, jan 2014) (find, matrices, search)

logicalfind(V, N)

image thumbnail

updated 11 months ago

dijsktra path finder by Sebastien PARIS

Mex implementation of the dijkstra algorithm (optimization, dijsktra, adjacency matrix)

test_dijkstra

mexme_dijkstra.m

image thumbnail

updated 1 year ago

CATSTRUCT by Jos (10584)

Concatenate/merge structures (v4.0, dec 2013). (structures, cell arrays, structure)

catstruct(varargin)

image thumbnail

updated 1 year ago

IEEE 754 binary representation by Toby Driscoll

Converts a double into its underlying 64-bit representation, including sign, exponent, and mantissa. (ieee double precision...)

ieee754(x,fmt)

image thumbnail

updated 1 year ago

FOURPLOT by Jos (10584)

Four-plot for efficient visual exploratory data analysis, with box plot (V2.0, july 2013) (statistics, data inspection, normality)

fourplot(X)

image thumbnail

updated 1 year ago

COMBNSUB by Jos (10584)

Subset of all possible combinations of a fixed number of elements of a vector (v1.1, june 2013) (combination, subset, selection)

combnsub(V,N, IX)

image thumbnail

updated 1 year ago

Sylvester Matrix by Jos (10584)

SYLVESTER - Sylvester matrix of two polynomials (v3.0, june 2013) (matrix, polynomials, polynomial)

sylvester(P,Q ,MpMq)

image thumbnail

updated 1 year ago

COMBN (4.3) by Jos (10584)

All combinations of N elements taken from the vector V. (matrices, combination, permutation)

combn(V,N)

image thumbnail

updated almost 2 years ago

toSingle by Ben Barrowes

Converts all numeric variables in the workspace, or optionally all doubles only, to single precision (numerical, precision)

toSingle(doublesOnly)

image thumbnail

updated almost 2 years ago

NCHOOSECRIT (V1.0 feb 2013) by Jos (10584)

returns those subsets (= combinations of elements of a set) that fulfill a specific criterion (combinations, sets, subsets)

nchoosecrit(S, FUN)

image thumbnail

updated 2 years ago

FACTORIALRATIO by Jos (10584)

Ratio of factorials, as in (a!b!c!...) / (d!e!f!g!...) (version 2.0, oct 2012) (factorial, product, large numbers)

factorialratio(A,B)

image thumbnail

updated 2 years ago

NEXTPERMPOS by Jos (10584)

the next combination of values in specific positions (extension of PERMPOS) (permutation, combination, large)

nextpermpos(C)

image thumbnail

updated 2 years ago

Fractions Toolbox by Ben Petschel

create and manipulate fractions (K+N/D) using exact arithmetic (fraction, rational, arithmetic)

fr(varargin)

demo_fr.m

image thumbnail

updated 2 years ago

The Bellman-Ford-Moore Shortest Path Algorithm by Derek O'Connor

A simple, efficient sparse implementation of the original Bellman-Ford-Moore Shortest Path Algorithm (shortest paths, sparse graphs)

BFMSpathOT(G,r)

Initialize(G)

TestBFMOTMaps;

image thumbnail

updated 2 years ago

NEARESTPOINT (sep 2012) by Jos (10584)

NEARESTPOINT - find the nearest value in another vector (statistics, probability, distance)

nearestpoint(x,y,m)

image thumbnail

updated 2 years ago

The Computation of Pi by Archimedes by Bill McKeeman

Archimedes wrote 3 1/7 > pi > 3 10/71. This is how he did it. (pi, archimedes, math history)

The Computation of Pi by Archimedes

iszero(INT)

fr(varargin)

image thumbnail

updated 2 years ago

KTHVALUE (v2.1, jun 2012) by Jos (10584)

select the k-th smallest element in a (randomized) list (matrix, sort, select)

kthvalue(L,K)

image thumbnail

updated 2 years ago

getkey by Jos (10584)

Get a (single) keypress (v2.0, june 2012) (keypress, keyboard, input)

getkey(N,nonascii)

image thumbnail

updated 2 years ago

TRIPLESTEST by Jos (10584)

a non-parametric test for asymmetry (statistics, probability, test symmetry nonpara...)

triplestest(X, alpha)

image thumbnail

updated almost 3 years ago

Random Numbers from a Discrete Distribution by Tristan Ursell

Simple algorithm to generate random numbers from a user-defined discrete probability distribution. (random, number, variable)

gendist(P,N,M,varargin)

image thumbnail

updated almost 3 years ago

GetKeyWait by Jos (10584)

Wait a certain time for a single keypress (v2.1, jan 2012). (keypress, kbhit, input)

getkeywait(m)

image thumbnail

updated almost 3 years ago

KTHCOMBN by Jos (10584)

K-th combination(s) of elements (combinations, permutations, selection)

kthcombn (V,N,K)

image thumbnail

updated 3 years ago

Fortran 95 Interface to MATLAB API with extras! by James Tursa

This is the one you have been waiting for, a clean interface using assumed shape Fortran pointers. (fortran 95, fortran, 95)

MatlabAPI_build_cvf61.m

MatlabAPI_build_cvf66.m

MatlabAPI_build_intelf10msvs2005.m

image thumbnail

updated 3 years ago

PADCAT by Jos (10584)

concatenate vectors with different lengths by padding with NaN (v1.2, oct 2011) (matrix, matrices, matrix manipulation)

padcat(varargin)

image thumbnail

updated 3 years ago

RANDBLOCK by Jos (10584)

scramble matrices using blocks (v2.3, mar 2011) (matrices, random, shuffle)

randblock(M,S)

image thumbnail

updated almost 4 years ago

Shuffle by Jan Simon

Random permutation of array elements, C-Mex: much faster than RANDPERM (statistics, vector, mix)

Shuffle(Arg1, Arg2, Arg3)

uTest_Shuffle(doSpeed, doBias)

image thumbnail

updated almost 4 years ago

MOVENAN (v1.0, mar 2011) by Jos (10584)

Move NaNs to the beginning or end of a column (matrix, manipulation, sort)

movenan (X, direction)

image thumbnail

updated almost 4 years ago

RPG Lab by Derek O'Connor

A set of functions for generating and testing random permutations of the integers (1,2, ..., n). (random permutation ge..., derangements, cyclic permutations)

image thumbnail

updated almost 4 years ago

RANDPERMFULL (derangement) by Jos (10584)

RANDPERMFULL (N) returns a random derangement (complete permutation) of the integers from 1 to N (permutation, derangement, random)

randpermfull(N)

image thumbnail

updated 4 years ago

Random Regular generator by golan pundak

creates a random regular graph in the pairing model (graphs, combinatorics, mathematics)

createRandRegGraph(vertNum, deg)

test.m

image thumbnail

updated 4 years ago

INT64 arithmetic in MATLAB by Petter

Enables int64 Addition, subtraction, multiplication, division and modulus. (int64, addition, subtraction)

example_int64

abs(a)

abs(a)

image thumbnail

updated almost 5 years ago

FLIPXYVIEW (v2.0, mar 2010) by Jos (10584)

flips (mirror rotates) the horizontal and vertical plot axes (plot, axes, flip)

flipxyview (hAxes)

image thumbnail

updated almost 5 years ago

NCHOOSE (v2.1 mar 2010) by Jos (10584)

return all combinations of the elements of a set (matrices, matrix, nchoosek)

nchoose(S)

image thumbnail

updated almost 5 years ago

CELL2FLOAT by Jos (10584)

converts cell array into scalar float array (v4.0, jan 2010) (matrices, cell, double)

cell2float(C, Filler, StopOnError)

image thumbnail

updated 5 years ago

Blendenpik by Haim Avron

A fast solver of dense rectangular dense linear equations . (least squares or underdetermined). (mathematics, numerical linear alge..., leastsquares equation...)

blendenpik(A, b, params)

blendenpik_over(A, b, params)

blendenpik_under(A, b, params)

image thumbnail

updated 5 years ago

NextVector toolbox by Ben Petschel

files for iterating over permutations, combinations, subsets and vectorized for/while loops (next, next vector, perms)

vout=nextchoose(v,w)

vout=nextfor(v,lo,hi,dx)

vout=nextperm(v)

image thumbnail

updated 5 years ago

Binary Search for numeric vector by Dr. Murtaza Khan

Search given value in a sorted vector, returns the index of location where the value is found. (binary search, sorted vector, numeric)

binaraysearchasc(x,sval)

image thumbnail

updated 5 years ago

UNIQUEWITHEQUALNANS by Jos (10584)

Set unique, treating NaNs as equal (v2.0, mar 2009) (matrices, unique, sort)

uniquewithequalnans(A,varargin)

image thumbnail

updated 5 years ago

BALLATSQ by Jos (10584)

Create a balanced latin square (v2.2, mar 2009) (statistics, probability, balanced latin)

ballatsq(N)

image thumbnail

updated 5 years ago

RANDP by Jos (10584)

Random integers with given probabilities ( (v2.0) (statistics, probability, rand)

randp(P,varargin) ;

image thumbnail

updated almost 6 years ago

FISHERTEST by Jos (10584)

Fisher Exact test for 2-x-2 contingency tables (fisher, statistical, test)

fishertest(M, alpha)

image thumbnail

updated almost 6 years ago

CIRCULANT (v2.0, feb 2009) by Jos (10584)

(yet another, but fast) Circulent Matrix (matrix, matrix manipulation, matrices)

circulant(A,d)

image thumbnail

updated almost 6 years ago

LATSQ by Jos (10584)

(randomized) Latin Square (statistics, probability, latin square randomiz...)

latsq(N)

Contact us