1 | /*M/////////////////////////////////////////////////////////////////////////////////////// |
2 | // |
3 | // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. |
4 | // |
5 | // By downloading, copying, installing or using the software you agree to this license. |
6 | // If you do not agree to this license, do not download, install, |
7 | // copy or use the software. |
8 | // |
9 | // |
10 | // License Agreement |
11 | // For Open Source Computer Vision Library |
12 | // |
13 | // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. |
14 | // Copyright (C) 2009, Willow Garage Inc., all rights reserved. |
15 | // Copyright (C) 2013, OpenCV Foundation, all rights reserved. |
16 | // Copyright (C) 2015, Itseez Inc., all rights reserved. |
17 | // Third party copyrights are property of their respective owners. |
18 | // |
19 | // Redistribution and use in source and binary forms, with or without modification, |
20 | // are permitted provided that the following conditions are met: |
21 | // |
22 | // * Redistribution's of source code must retain the above copyright notice, |
23 | // this list of conditions and the following disclaimer. |
24 | // |
25 | // * Redistribution's in binary form must reproduce the above copyright notice, |
26 | // this list of conditions and the following disclaimer in the documentation |
27 | // and/or other materials provided with the distribution. |
28 | // |
29 | // * The name of the copyright holders may not be used to endorse or promote products |
30 | // derived from this software without specific prior written permission. |
31 | // |
32 | // This software is provided by the copyright holders and contributors "as is" and |
33 | // any express or implied warranties, including, but not limited to, the implied |
34 | // warranties of merchantability and fitness for a particular purpose are disclaimed. |
35 | // In no event shall the Intel Corporation or contributors be liable for any direct, |
36 | // indirect, incidental, special, exemplary, or consequential damages |
37 | // (including, but not limited to, procurement of substitute goods or services; |
38 | // loss of use, data, or profits; or business interruption) however caused |
39 | // and on any theory of liability, whether in contract, strict liability, |
40 | // or tort (including negligence or otherwise) arising in any way out of |
41 | // the use of this software, even if advised of the possibility of such damage. |
42 | // |
43 | //M*/ |
44 | |
45 | #ifndef OPENCV_CORE_HAL_INTERNAL_HPP |
46 | #define OPENCV_CORE_HAL_INTERNAL_HPP |
47 | |
48 | #ifdef HAVE_LAPACK |
49 | |
50 | int lapack_LU32f(float* a, size_t a_step, int m, float* b, size_t b_step, int n, int* info); |
51 | int lapack_LU64f(double* a, size_t a_step, int m, double* b, size_t b_step, int n, int* info); |
52 | int lapack_Cholesky32f(float* a, size_t a_step, int m, float* b, size_t b_step, int n, bool* info); |
53 | int lapack_Cholesky64f(double* a, size_t a_step, int m, double* b, size_t b_step, int n, bool* info); |
54 | int lapack_SVD32f(float* a, size_t a_step, float* w, float* u, size_t u_step, float* vt, size_t v_step, int m, int n, int flags); |
55 | int lapack_SVD64f(double* a, size_t a_step, double* w, double* u, size_t u_step, double* vt, size_t v_step, int m, int n, int flags); |
56 | int lapack_QR32f(float* src1, size_t src1_step, int m, int n, int k, float* src2, size_t src2_step, float* dst, int* info); |
57 | int lapack_QR64f(double* src1, size_t src1_step, int m, int n, int k, double* src2, size_t src2_step, double* dst, int* info); |
58 | int lapack_gemm32f(const float* src1, size_t src1_step, const float* src2, size_t src2_step, |
59 | float alpha, const float* src3, size_t src3_step, float beta, float* dst, size_t dst_step, |
60 | int m, int n, int k, int flags); |
61 | int lapack_gemm64f(const double* src1, size_t src1_step, const double* src2, size_t src2_step, |
62 | double alpha, const double* src3, size_t src3_step, double beta, double* dst, size_t dst_step, |
63 | int m, int n, int k, int flags); |
64 | int lapack_gemm32fc(const float* src1, size_t src1_step, const float* src2, size_t src2_step, |
65 | float alpha, const float* src3, size_t src3_step, float beta, float* dst, size_t dst_step, |
66 | int m, int n, int k, int flags); |
67 | int lapack_gemm64fc(const double* src1, size_t src1_step, const double* src2, size_t src2_step, |
68 | double alpha, const double* src3, size_t src3_step, double beta, double* dst, size_t dst_step, |
69 | int m, int n, int k, int flags); |
70 | |
71 | #undef cv_hal_LU32f |
72 | #define cv_hal_LU32f lapack_LU32f |
73 | #undef cv_hal_LU64f |
74 | #define cv_hal_LU64f lapack_LU64f |
75 | |
76 | #undef cv_hal_Cholesky32f |
77 | #define cv_hal_Cholesky32f lapack_Cholesky32f |
78 | #undef cv_hal_Cholesky64f |
79 | #define cv_hal_Cholesky64f lapack_Cholesky64f |
80 | |
81 | #undef cv_hal_SVD32f |
82 | #define cv_hal_SVD32f lapack_SVD32f |
83 | #undef cv_hal_SVD64f |
84 | #define cv_hal_SVD64f lapack_SVD64f |
85 | |
86 | #undef cv_hal_QR32f |
87 | #define cv_hal_QR32f lapack_QR32f |
88 | #undef cv_hal_QR64f |
89 | #define cv_hal_QR64f lapack_QR64f |
90 | |
91 | #undef cv_hal_gemm32f |
92 | #define cv_hal_gemm32f lapack_gemm32f |
93 | #undef cv_hal_gemm64f |
94 | #define cv_hal_gemm64f lapack_gemm64f |
95 | #undef cv_hal_gemm32fc |
96 | #define cv_hal_gemm32fc lapack_gemm32fc |
97 | #undef cv_hal_gemm64fc |
98 | #define cv_hal_gemm64fc lapack_gemm64fc |
99 | |
100 | #endif //HAVE_LAPACK |
101 | #endif //OPENCV_CORE_HAL_INTERNAL_HPP |
102 | |