Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_numerics
Commits
8a2275cb
Commit
8a2275cb
authored
Jan 29, 2016
by
Pietro Incardona
Browse files
small fix
parent
a9ea8f7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/Makefile.am
View file @
8a2275cb
...
@@ -6,6 +6,7 @@ numerics_SOURCES = main.cpp ../../openfpm_vcluster/src/VCluster.cpp ../../openfp
...
@@ -6,6 +6,7 @@ numerics_SOURCES = main.cpp ../../openfpm_vcluster/src/VCluster.cpp ../../openfp
numerics_CXXFLAGS
=
$(INCLUDES_PATH)
$(BOOST_CPPFLAGS)
$(SUITESPARSE_INCLUDE)
$(METIS_INCLUDE)
$(EIGEN_INCLUDE)
-Wno-deprecated-declarations
-Wunused-local-typedefs
numerics_CXXFLAGS
=
$(INCLUDES_PATH)
$(BOOST_CPPFLAGS)
$(SUITESPARSE_INCLUDE)
$(METIS_INCLUDE)
$(EIGEN_INCLUDE)
-Wno-deprecated-declarations
-Wunused-local-typedefs
numerics_CFLAGS
=
$(CUDA_CFLAGS)
numerics_CFLAGS
=
$(CUDA_CFLAGS)
numerics_LDADD
=
$(LINKLIBS)
-lmetis
numerics_LDADD
=
$(LINKLIBS)
-lmetis
nobase_include_HEADERS
=
PSE/Kernels.hpp
.cu.o
:
.cu.o
:
$(NVCC)
$(NVCCFLAGS)
-o
$@
-c
$<
$(NVCC)
$(NVCCFLAGS)
-o
$@
-c
$<
src/Matrix/SparseMatrix.hpp
View file @
8a2275cb
...
@@ -46,9 +46,9 @@ template<typename T, unsigned int impl> struct triplet
...
@@ -46,9 +46,9 @@ template<typename T, unsigned int impl> struct triplet
}
}
};
};
/*
! \brief Sparse Matrix implementation
/*! \brief Sparse Matrix implementation
*
*
* \tparam T Type of the sparse Matrix
* \tparam T Type of the sparse Matrix
store on each row,colums
* \tparam id_t type of id
* \tparam id_t type of id
* \tparam impl implementation
* \tparam impl implementation
*
*
...
...
src/Matrix/SparseMatrix_Eigen.hpp
View file @
8a2275cb
...
@@ -13,6 +13,12 @@
...
@@ -13,6 +13,12 @@
#define EIGEN_TRIPLET 1
#define EIGEN_TRIPLET 1
/*! \brief It store one non-zero element in the sparse matrix
*
* Given a row, and a column, store a value
*
*
*/
template
<
typename
T
>
template
<
typename
T
>
struct
triplet
<
T
,
EIGEN_TRIPLET
>
struct
triplet
<
T
,
EIGEN_TRIPLET
>
{
{
...
@@ -40,6 +46,13 @@ struct triplet<T,EIGEN_TRIPLET>
...
@@ -40,6 +46,13 @@ struct triplet<T,EIGEN_TRIPLET>
}
}
};
};
/* ! \brief Sparse Matrix implementation, that map over Eigen
*
* \tparam T Type of the sparse Matrix store on each row,colums
* \tparam id_t type of id
* \tparam impl implementation
*
*/
template
<
typename
T
,
typename
id_t
>
template
<
typename
T
,
typename
id_t
>
class
SparseMatrix
<
T
,
id_t
,
Eigen
::
SparseMatrix
<
T
,
0
,
id_t
>>
class
SparseMatrix
<
T
,
id_t
,
Eigen
::
SparseMatrix
<
T
,
0
,
id_t
>>
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment