diff options
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/integer_matrix.c | 26 | ||||
-rw-r--r-- | libcrystfel/src/integer_matrix.h | 3 |
2 files changed, 0 insertions, 29 deletions
diff --git a/libcrystfel/src/integer_matrix.c b/libcrystfel/src/integer_matrix.c index e74e0ea4..90d58b35 100644 --- a/libcrystfel/src/integer_matrix.c +++ b/libcrystfel/src/integer_matrix.c @@ -177,32 +177,6 @@ signed int intmat_get(const IntegerMatrix *m, unsigned int i, unsigned int j) } -/* intmat_solve_rational: - * @m: An %IntegerMatrix - * @vec: An array of %Rational - * @ans: An array of %Rational in which to store the result - * - * Solves the matrix equation m*ans = vec, where @ans and @vec are - * column vectors of %Rational numbers. - * - * This is just a convenience function which creates a %RationalMatrix out of - * @m and then calls rtnl_mtx_solve(). - * - * Returns: non-zero on error - **/ -int intmat_solve_rational(const IntegerMatrix *m, const Rational *vec, - Rational *ans) -{ - RationalMatrix *rm; - int r; - - rm = rtnl_mtx_from_intmat(m); - r = rtnl_mtx_solve(rm, vec, ans); - rtnl_mtx_free(rm); - return r; -} - - /** * transform_indices: * @P: An %IntegerMatrix diff --git a/libcrystfel/src/integer_matrix.h b/libcrystfel/src/integer_matrix.h index 9a2e4ce2..6fb3e399 100644 --- a/libcrystfel/src/integer_matrix.h +++ b/libcrystfel/src/integer_matrix.h @@ -77,9 +77,6 @@ extern signed int *transform_indices(const IntegerMatrix *P, const signed int *h extern IntegerMatrix *intmat_intmat_mult(const IntegerMatrix *a, const IntegerMatrix *b); -extern int intmat_solve_rational(const IntegerMatrix *m, const Rational *vec, - Rational *ans); - /* Inverse */ extern IntegerMatrix *intmat_inverse(const IntegerMatrix *m); |