Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use more LAPACK and BLAS routines in LAPACKFullMatrix #5934

Merged
merged 2 commits into from
Feb 21, 2018

Conversation

BenBrands
Copy link
Contributor

This PR is a partial remedy to #5900.
The assignment operator for FullMatrix is not changed due to the different memory layouts of FullMatrix and LAPACKFullMatrix.

Copy link
Contributor

@davydden davydden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for attacking this issue. Please add a changelog


// Multiply rectangular mxn real matrix by real scalar CTO/CFROM
void dlascl_(const char *type,
const int *kl,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use dealii::types::blas_int


lascl(&type,&kl,&kl,&factor,&cto,&m,&n,values,&lda,&info);

Assert(info >= 0, ExcInternalError());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we throw some custom error for Lapack

for (size_type i=0; i<m(); ++i)
for (size_type j=0; j<n(); ++j)
(*this)(i,j) += a * A(i,j);
// BLAS does not offer functions to add matrices
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full stop

@BenBrands BenBrands force-pushed the LapackFullMatrix branch 2 times, most recently from 99f399f to efab33b Compare February 20, 2018 18:54
Copy link
Member

@Rombur Rombur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good thanks for the patch

@Rombur
Copy link
Member

Rombur commented Feb 20, 2018

/run-tests

Copy link
Contributor

@davydden davydden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for updating.

@davydden davydden merged commit 29c06e5 into dealii:master Feb 21, 2018
@BenBrands BenBrands deleted the LapackFullMatrix branch July 24, 2018 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants