NnmfPack  2.1
mlsa_cpu.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2014 by PIR (University of Oviedo) and *
3  * INCO2 (Polytechnic University of Valencia) groups. *
4  * nnmfpack@gmail.com *
5  * *
6  * This program is free software; you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation; either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program; if not, write to the *
18  * Free Software Foundation, Inc., *
19  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
20  ***************************************************************************
21 */
32 #ifndef MLSA_CPU_H
33 #define MLSA_CPU_H
34 
35 #include <utils_x86.h>
36 
37 #define UpdateAll 1
38 #define UpdateW 2
39 #define UpdateH 3
40 
41 int dmlsa_cpu(const int m, const int n, const int k, const double *A, double *W, double *H, const int uType, const int nIter);
42 int smlsa_cpu(const int m, const int n, const int k, const float *A, float *W, float *H, const int uType, const int nIter);
43 
44 /*Auxiliar functions */
45 void ddotdiv_x86(const int n, const double *x, const double *y, double *__restrict__ z);
46 void sdotdiv_x86(const int n, const float *x, const float *y, float *__restrict__ z);
47 
48 #endif
Header file for using utility modules from CPU/MIC source codes.
void sdotdiv_x86(const int n, const float *x, const float *y, float *__restrict__ z)
This function calls the appropiate funtions to performs simple precision element-wise z[i]=z[i]*x[i]/...
Definition: mlsa_cpu.c:509
int smlsa_cpu(const int m, const int n, const int k, const float *A, float *W, float *H, const int uType, const int nIter)
smlsa_cpu performs NNMF using betadivergence when beta=2 using simple precision
Definition: mlsa_cpu.c:275
void ddotdiv_x86(const int n, const double *x, const double *y, double *__restrict__ z)
This function calls the appropiate funtions to performs double precision element-wise z[i]=z[i]*x[i]/...
Definition: mlsa_cpu.c:471
int dmlsa_cpu(const int m, const int n, const int k, const double *A, double *W, double *H, const int uType, const int nIter)
dmlsa_cpu performs NNMF using betadivergence when beta=2 using double precision
Definition: mlsa_cpu.c:74