\hypertarget{ddss__dnpgetrf_8c}{}\section{src/ddss\+\_\+dnpgetrf.c File Reference}
\label{ddss__dnpgetrf_8c}\index{src/ddss\+\_\+dnpgetrf.\+c@{src/ddss\+\_\+dnpgetrf.\+c}}


L\+A\+Ss-\/\+D\+D\+Ss ddss\+\_\+dnpgetrf routine.  


{\ttfamily \#include \char`\"{}../include/lass.\+h\char`\"{}}\\*
Include dependency graph for ddss\+\_\+dnpgetrf.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{ddss__dnpgetrf_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{ddss__dnpgetrf_8c_a665c631275c07b1dc9554d982e493a5e}{ddss\+\_\+dnpgetrf} (int M, int N, double $\ast$A, int L\+DA)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
L\+A\+Ss-\/\+D\+D\+Ss ddss\+\_\+dnpgetrf routine. 

L\+A\+Ss-\/\+D\+D\+Ss is a software package provided by\+: Barcelona Supercomputing Center -\/ Centro Nacional de Supercomputacion

\begin{DoxyAuthor}{Author}
Pedro Valero-\/\+Lara \href{mailto:pedro.valero@bsc.es}{\tt pedro.\+valero@bsc.\+es} 

Boro Sofranac \href{mailto:boro.sofranac@bsc.es}{\tt boro.\+sofranac@bsc.\+es} 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
2018-\/04-\/06   
\end{DoxyDate}


\subsection{Function Documentation}
\index{ddss\+\_\+dnpgetrf.\+c@{ddss\+\_\+dnpgetrf.\+c}!ddss\+\_\+dnpgetrf@{ddss\+\_\+dnpgetrf}}
\index{ddss\+\_\+dnpgetrf@{ddss\+\_\+dnpgetrf}!ddss\+\_\+dnpgetrf.\+c@{ddss\+\_\+dnpgetrf.\+c}}
\subsubsection[{\texorpdfstring{ddss\+\_\+dnpgetrf(int M, int N, double $\ast$\+A, int L\+D\+A)}{ddss_dnpgetrf(int M, int N, double *A, int LDA)}}]{\setlength{\rightskip}{0pt plus 5cm}int ddss\+\_\+dnpgetrf (
\begin{DoxyParamCaption}
\item[{int}]{M, }
\item[{int}]{N, }
\item[{double $\ast$}]{A, }
\item[{int}]{L\+DA}
\end{DoxyParamCaption}
)}\hypertarget{ddss__dnpgetrf_8c_a665c631275c07b1dc9554d982e493a5e}{}\label{ddss__dnpgetrf_8c_a665c631275c07b1dc9554d982e493a5e}
Performs the LU factorization without pivoting of a general M-\/by-\/N matrix A\+: \begin{DoxyVerb}A = L * U
\end{DoxyVerb}


where L is a lower triangular ( lower trapezoidal if M $>$ N ) matrix with unit diagonal elements and U is an upper triangular ( upper trapezoidal if M $<$ N ) matrix.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em M} & int. M specifies the number of rows of the matrix A. M $>$= 0.\\
\hline
\mbox{\tt in}  & {\em N} & int. N specifies the number of columns of the matrix A. N $>$= 0.\\
\hline
\mbox{\tt in,out}  & {\em A} & double $\ast$. A is a pointer to a regular matrix of dimension M-\/by-\/N. On exit, if return value is Success, the matrix A is overwriten by the factors L and U. The unit diagonal elements of L are not stored.\\
\hline
\mbox{\tt in}  & {\em L\+DA} & int. L\+DA specifies the number of columns of A ( row-\/major order ). L\+DA must be at least max( 1, N ).\\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em Success} & successful exit \\
\hline
{\em No\+Success} & unsuccessful exit\\
\hline
\end{DoxyRetVals}
\begin{DoxySeeAlso}{See also}
knpdgetrf 
\end{DoxySeeAlso}


Definition at line 70 of file ddss\+\_\+dnpgetrf.\+c.



References kdnpgetrf().


\begin{DoxyCode}
71 \{
72 
73     \textcolor{comment}{// Argument checking}
74     \textcolor{keywordflow}{if} ( M < 0 )
75     \{
76         fprintf( stderr, \textcolor{stringliteral}{"Illegal value of M, in ddss\_dnpgetrf code\(\backslash\)n"} );
77         \textcolor{keywordflow}{return} NoSuccess;
78     \}
79 
80     \textcolor{keywordflow}{if} ( N < 0 )
81     \{
82         fprintf( stderr, \textcolor{stringliteral}{"Illegal value of N, in ddss\_dnpgetrf code\(\backslash\)n"} );
83         \textcolor{keywordflow}{return} NoSuccess;
84     \}
85 
86     \textcolor{keywordflow}{if} ( LDA < MAX( 1, N ) )
87     \{
88         fprintf( stderr, \textcolor{stringliteral}{"Illegal value of LDA, in ddss\_dnpgetrf code\(\backslash\)n"} );
89         \textcolor{keywordflow}{return} NoSuccess;
90     \}
91 
92     \textcolor{comment}{// Qick return}
93     \textcolor{keywordflow}{if} ( MIN( M, N ) == 0 )
94     \{
95         \textcolor{keywordflow}{return} Success;
96     \}
97 
98     \textcolor{keywordflow}{return} \hyperlink{kdnpgetrf_8c_aad8c6b9542e74c481faff1ff5e03850f}{kdnpgetrf}( M, N, A, LDA );
99 
100 \} 
\end{DoxyCode}
