Add diffusion_matrix_sparse() and its tests.
[octave.git] / even.m
1 function even = even(integer_n)
2 ## Returns true if its argument is even; false otherwise.
3 ##
4 ## INPUTS:
5 ##
6 ## * ``integer_n`` - The integer whose parity you're determining.
7 ##
8 ##
9 ## OUTPUTS:
10 ##
11 ## * ``even`` - True if `integer_n` is even, false otherwise.
12 ##
13 even = rem(integer_n, 2) == 0;
14 end