aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/integer_matrix.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-03-12 14:31:26 +0100
committerThomas White <taw@physics.org>2019-03-12 14:31:26 +0100
commitee77fdf67c9bb5430c7a8eb5005673e507964931 (patch)
tree0e58f81bf0495d3a84f333ddfb5142dd8af3805e /libcrystfel/src/integer_matrix.c
parentf32d46e54f5b9d645fb65accec52126099b49589 (diff)
Get rid of two unused functions
Diffstat (limited to 'libcrystfel/src/integer_matrix.c')
-rw-r--r--libcrystfel/src/integer_matrix.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/libcrystfel/src/integer_matrix.c b/libcrystfel/src/integer_matrix.c
index 1b448771..b6f55ac2 100644
--- a/libcrystfel/src/integer_matrix.c
+++ b/libcrystfel/src/integer_matrix.c
@@ -177,70 +177,6 @@ signed int intmat_get(const IntegerMatrix *m, unsigned int i, unsigned int j)
}
-/* intmat_intvec_mult:
- * @m: An %IntegerMatrix
- * @vec: An array of floats
- * @ans: An array of floats in which to store the result
- *
- * Multiplies the matrix @m by the vector @vec. The size of @vec must equal the
- * number of columns in @m, and the size of the result equals the number of rows
- * in @m.
- *
- * Returns: non-zero on error
- **/
-int intmat_floatvec_mult(const IntegerMatrix *m, const float *vec, float *ans)
-{
- unsigned int i;
-
- for ( i=0; i<m->rows; i++ ) {
-
- unsigned int j;
-
- ans[i] = 0.0;
- for ( j=0; j<m->cols; j++ ) {
- ans[i] += intmat_get(m, i, j) * vec[j];
- }
-
- }
-
- return 0;
-}
-
-
-/* intmat_rationalvec_mult:
- * @m: An %IntegerMatrix
- * @vec: An array of %Rational
- * @ans: An array of %Rational in which to store the result
- *
- * Multiplies the matrix @m by the vector @vec. The size of @vec must equal the
- * number of columns in @m, and the size of the result equals the number of rows
- * in @m.
- *
- * Returns: non-zero on error
- **/
-int intmat_rationalvec_mult(const IntegerMatrix *m, const Rational *vec,
- Rational *ans)
-{
- unsigned int i;
-
-
- for ( i=0; i<m->rows; i++ ) {
-
- unsigned int j;
-
- ans[i] = rtnl_zero();
- for ( j=0; j<m->cols; j++ ) {
- Rational t;
- t = rtnl_mul(vec[j], rtnl(intmat_get(m, i, j), 1));
- ans[i] = rtnl_add(ans[i], t);
- }
-
- }
-
- return 0;
-}
-
-
/* intmat_solve_rational:
* @m: An %IntegerMatrix
* @vec: An array of %Rational