/* Copyright (C) 2011 Statoil ASA, Norway. The file 'matrix_lapack.h' is part of ERT - Ensemble based Reservoir Tool. ERT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ERT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at for more details. */ #ifndef __MATRIX_LAPACK_H__ #define __MATRIX_LAPACK_H__ #include #ifdef __cplusplus extern "C" { #endif /** This enum is just a simple way to label the different ways the singular vectors in U and VT are returned to the calling scope. The low level lapack routine uses a character variable, indicated below. */ typedef enum { /* A */ DGESVD_ALL, /* Returns all the singular vectors in U/VT. */ /* S */ DGESVD_MIN_RETURN, /* Return the first min(m,n) vectors in U/VT. */ /* O */ DGESVD_MIN_OVERWRITE, /* Return the first min(m,n) vectors of U/VT by overwriteing in A. */ /* N */ DGESVD_NONE} /* Do not compute any singular vectors for U/VT */ dgesvd_vector_enum; typedef enum { /* A */ DSYEVX_ALL, /* Compute all the eigenvalues */ /* V */ DSYEVX_VALUE_INTERVAL, /* Computes eigenvalues in half open interval