/lattice_sum

Recursively finds all the non-negative integer points x_i : i=1..n such that x_1 + x_2 + ... + x_n = r , where r is an integer

Primary LanguageMATLABGNU General Public License v3.0GPL-3.0

lattice_sum

Recursively finds all the non-negative integer points x_i : i=1..n such that x_1 + x_2 + ... + x_n = r , where r is an integer

Scope

Given a number of dimensions n and an integer r, it finds all the vectors equation such that equation.

Validation

In test_lattice_plane a graphical and a multidimensional validation is performed.

Changelog

Now performs only the necessary iterations