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
cf18efac
Commit
cf18efac
authored
8 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
bunch of fixes
parent
c59735ae
No related branches found
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spm.h
+22
-9
22 additions, 9 deletions
spm.h
with
22 additions
and
9 deletions
spm.h
+
22
−
9
View file @
cf18efac
...
...
@@ -177,37 +177,50 @@ pastix_spm_t *spmDofExtend( const int type, const int dof, const pastix_spm_t *s
*/
/**
*******************************************************************************
*
* @name SPM dev printing subroutines
* @{
*
*/
/**
* @ingroup pastix_spm_dev
* @brief Subroutines to print element
s
of spm structure
s
* @brief Subroutines to print
one
element of
an
spm structure
*
*******************************************************************************
* @param[in] f Pointer to the file
*
* @param[in] i Row index of the element
*
* @param[in] j Column index of the element
*
* @param[in] A Value of the element A|i,j]
*******************************************************************************
*
* Double complex case
*
*/
static
inline
void
z_spmPrintElt
(
FILE
*
f
,
pastix_int_t
i
,
pastix_int_t
j
,
pastix_complex64_t
A
){
fprintf
(
f
,
"%ld %ld %e %e
\n
"
,
(
long
)
i
,
(
long
)
j
,
creal
(
A
),
cimag
(
A
)
);
}
/**
* @copydoc z_spmPrintElt
* @details Single complex case
*/
static
inline
void
c_spmPrintElt
(
FILE
*
f
,
pastix_int_t
i
,
pastix_int_t
j
,
pastix_complex32_t
A
){
fprintf
(
f
,
"%ld %ld %e %e
\n
"
,
(
long
)
i
,
(
long
)
j
,
crealf
(
A
),
cimagf
(
A
)
);
}
/**
* @copydoc z_spmPrintElt
* @details Double real case
*/
static
inline
void
d_spmPrintElt
(
FILE
*
f
,
pastix_int_t
i
,
pastix_int_t
j
,
double
A
){
fprintf
(
f
,
"%ld %ld %e
\n
"
,
(
long
)
i
,
(
long
)
j
,
A
);
}
/**
* @copydoc z_spmPrintElt
* @details Single real case
*/
static
inline
void
s_spmPrintElt
(
FILE
*
f
,
pastix_int_t
i
,
pastix_int_t
j
,
float
A
){
fprintf
(
f
,
"%ld %ld %e
\n
"
,
(
long
)
i
,
(
long
)
j
,
A
);
}
/**
* @}
*/
#endif
/* _SPM_H_ */
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