Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
spm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
spm
Commits
dbe9c7f8
Commit
dbe9c7f8
authored
8 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Add comme spm2dense function
parent
cbe40777
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
spm.c
+37
-0
37 additions, 0 deletions
spm.c
spm.h
+1
-0
1 addition, 0 deletions
spm.h
with
38 additions
and
0 deletions
spm.c
+
37
−
0
View file @
dbe9c7f8
...
...
@@ -305,6 +305,43 @@ spmConvert( int ofmttype, pastix_spm_t *spm )
}
}
/**
*******************************************************************************
*
* @ingroup pastix_spm
*
* @brief Convert the spm matrix into a dense matrix for test purpose. DO NOT
* USE with large matrices.
*
*******************************************************************************
*
* @param[in,out] spm
* The sparse matrix structure to convert.
*
********************************************************************************
*
* @return
* The pointer to the allocated array storing the dense version of the
* matrix.
*
*******************************************************************************/
void
*
spm2Dense
(
const
pastix_spm_t
*
spm
)
{
switch
(
spm
->
flttype
)
{
case
PastixFloat
:
return
s_spm2dense
(
spm
);
case
PastixComplex32
:
return
c_spm2dense
(
spm
);
case
PastixComplex64
:
return
z_spm2dense
(
spm
);
case
PastixDouble
:
return
d_spm2dense
(
spm
);
default:
return
NULL
;
}
}
/**
*******************************************************************************
*
...
...
This diff is collapsed.
Click to expand it.
spm.h
+
1
−
0
View file @
dbe9c7f8
...
...
@@ -126,6 +126,7 @@ void spmExit( pastix_spm_t *spm );
pastix_spm_t
*
spmCopy
(
const
pastix_spm_t
*
spm
);
void
spmBase
(
pastix_spm_t
*
spm
,
int
baseval
);
int
spmConvert
(
int
ofmttype
,
pastix_spm_t
*
ospm
);
void
*
spm2Dense
(
const
pastix_spm_t
*
spm
);
pastix_int_t
spmFindBase
(
const
pastix_spm_t
*
spm
);
double
spmNorm
(
int
ntype
,
const
pastix_spm_t
*
spm
);
int
spmMatVec
(
const
pastix_trans_t
trans
,
const
void
*
alpha
,
const
pastix_spm_t
*
spm
,
const
void
*
x
,
const
void
*
beta
,
void
*
y
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment