upgrading copyright year from 2015 to 2016
[hkl.git] / hkl / hkl-matrix-private.h
blob0d92b174fccb795194adcecbf2f993ae5c6845c7
1 /* This file is part of the hkl library.
3 * The hkl library is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
8 * The hkl library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with the hkl library. If not, see <http://www.gnu.org/licenses/>.
16 * Copyright (C) 2003-2016 Synchrotron SOLEIL
17 * L'Orme des Merisiers Saint-Aubin
18 * BP 48 91192 GIF-sur-YVETTE CEDEX
20 * Authors: Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
22 #ifndef __HKL_MATRIX_PRIVATE_H__
23 #define __HKL_MATRIX_PRIVATE_H__
25 #include <stdio.h>
27 #include "hkl.h"
29 G_BEGIN_DECLS
31 struct _HklMatrix
33 double data[3][3];
36 extern HklMatrix *hkl_matrix_dup(const HklMatrix* self);
38 extern void hkl_matrix_init_from_euler(HklMatrix *self,
39 double euler_x, double euler_y, double euler_z) HKL_ARG_NONNULL(1);
41 extern void hkl_matrix_matrix_set(HklMatrix *self, const HklMatrix *m) HKL_ARG_NONNULL(1, 2);
43 extern void hkl_matrix_init_from_two_vector(HklMatrix *self,
44 const HklVector *v1, const HklVector *v2);
46 extern void hkl_matrix_fprintf(FILE *file, const HklMatrix *self);
48 extern void hkl_matrix_to_euler(const HklMatrix *self,
49 double *euler_x, double *euler_y, double *euler_z);
51 extern void hkl_matrix_times_vector(const HklMatrix *self, HklVector *v);
53 extern void hkl_matrix_transpose(HklMatrix *self);
55 extern double hkl_matrix_det(const HklMatrix *self);
57 extern int hkl_matrix_solve(const HklMatrix *self,
58 HklVector *x, const HklVector *b);
60 extern int hkl_matrix_is_null(const HklMatrix *self);
62 G_END_DECLS
64 #endif