aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-03-13 15:41:55 +0100
committerThomas White <taw@physics.org>2019-03-13 15:41:55 +0100
commite2640716fb422a9de8b1611a464ec6bfe28dfe6f (patch)
treedd922e827a7c906445037c1bf9fa6955a0641d15 /libcrystfel
parent74fe33b767d9c94b5c22e274a7518937e8a7adf4 (diff)
Remove intmat_solve_rational
Not used anywhere
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/integer_matrix.c26
-rw-r--r--libcrystfel/src/integer_matrix.h3
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);