segmentation-fault / 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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:GNU General Public License v3.0


Languages

Language:MATLAB 100.0%