image thumbnail

updated 9 months ago

Matlab mex support for Visual Studio 2013 (and mbuild) by Petter

Adds mex support for Microsoft’s latest compiler. (mex)

image thumbnail

updated 2 years ago

Inpainting (coherency sensitive hashing) by Petter

Image inpainting using coherency sensitive hashing (CSH) (inpainting)

patch_inpaint(Aorg,Morg, verbose, sigma)

test.m

image thumbnail

updated almost 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 5 years ago

Jacobi and Legendre symbol by Petter

JACOBI computes the Jacobi symbol (m/n), a generalization of the Legendre symbol. (number theory, jacobi symbol)

jacobi(m,n)

image thumbnail

updated 5 years ago

Use C++ "new" and "delete" in MATLAB MEX files by Petter

This code modĂ­fies "new" and "delete" to register all allocated memory with the memory manager. (c, new, delete)

demo.m

make.m

image thumbnail

updated 5 years ago

0-1 Knapsack by Petter

Solves the 0-1 knapsack problem with positive integer weights. (knapsack, dynamic programming, 01 knapsack)

knapsack_demo

knapsack(weights, values, W)

Contact us