bool i4vec_is_nonpositive_any ( int n, int a[] ); int matrix_chain ( int n, int dims[] );