Community Profile

# David Holdaway

### Durham University

10 total contributions since 2012

View details...

Contributions in
View by

Submitted

Integer partition generator
Generates a table of all integer partitions of integers from 0 to N.

Vectorizing Code - how can I populate elements of a matrix from a vector without a FOR loop?
Do you NEED to make B as a matrix? Fangjun Jiang and Jan Simon's methods will work fine for what you have asked, but I've found...

nästan 9 år ago | 0

Question

Numerically solving a differential equation up to a certain value of the time dependent variable
I have a second order differential equation x''(t) = f(x) with an initial condition x(0) = x0 ; x'(0) = 0; I wish to ...

nästan 9 år ago | 0 answers | 0

### 0

Question

Finding eigenvectors of a matrix when all eigenvalues are known
I am currently running a code that has to diagonalise a large number of matrices every run. From other considerations I know wh...

nästan 9 år ago | 1 answer | 0

### 1

Submitted

block diagonal multiplication
Used for multiplying large block diagonal matrices with matrices / vectors.

Submitted

block diagonal representation
Converts a matrix into a cell array of different sized matrices that make up the blocks.

Submitted

Generates points and weights for Gauss Laguerre Quadrature, to a tolerance, tested for N < 300

Submitted

generates zeros of a Hermite polynomial of degree n to tolerance "tol" and their associated weights.

Submitted

Generate binomial table
Very simple function to generate a table of all possible binomial coefficients below a cut off