Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_numerics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argupta
openfpm_numerics
Commits
8a2275cb
Commit
8a2275cb
authored
Jan 29, 2016
by
Pietro Incardona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix
parent
a9ea8f7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
src/Makefile.am
src/Makefile.am
+1
-0
src/Matrix/SparseMatrix.hpp
src/Matrix/SparseMatrix.hpp
+2
-2
src/Matrix/SparseMatrix_Eigen.hpp
src/Matrix/SparseMatrix_Eigen.hpp
+13
-0
No files found.
src/Makefile.am
View file @
8a2275cb
...
...
@@ -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_CFLAGS
=
$(CUDA_CFLAGS)
numerics_LDADD
=
$(LINKLIBS)
-lmetis
nobase_include_HEADERS
=
PSE/Kernels.hpp
.cu.o
:
$(NVCC)
$(NVCCFLAGS)
-o
$@
-c
$<
src/Matrix/SparseMatrix.hpp
View file @
8a2275cb
...
...
@@ -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 impl implementation
*
...
...
src/Matrix/SparseMatrix_Eigen.hpp
View file @
8a2275cb
...
...
@@ -13,6 +13,12 @@
#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
>
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
>
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