GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — LAPACKE: don't allocate transposed matrix in ?lantr_work by vladimir-ch · Pull Request #382 · Reference-LAPACK/lapack

Conversation

@vladimir-ch

@vladimir-ch vladimir-ch commented Jan 10, 2020

Copy link
Copy Markdown
Contributor

This PR modifies LAPACKE_?lantr_work functions to avoid allocation (and filling) of the transposed triangular matrix a_t. It uses the standard trick that a lower triangular matrix in row-major storage can be viewed as an upper triangular matrix in column-major (and vice versa) if the parameters are properly adjusted. In fact, this is the same approach that LAPACKE_?lange_work functions use. With this approach a new work array must be allocated because the rows and columns are "swapped" between row/column-major (and not because LAPACKE is taking into account that it would make sense to have work sized differently in row major as I originally misunderstood).

I feel a little uneasy because of the lack of any tests but at least for double precision our Gonum test passes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vladimir-ch
LAPACKE: don't allocate transposed matrix in ?lantr_work
fd8f680
@codecov

codecov Bot commented Jan 10, 2020

Copy link
Copy Markdown

Codecov Report

Merging #382 into master will increase coverage by 2.35%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #382      +/-   ##
==========================================
+ Coverage   80.88%   83.24%   +2.35%     
==========================================
  Files        1863     1808      -55     
  Lines      181151   170181   -10970     
==========================================
- Hits       146528   141664    -4864     
+ Misses      34623    28517    -6106
Impacted Files Coverage Δ
SRC/dlat2s.f 76.47% <0%> (-4.49%) ⬇️
SRC/dtgexc.f 46.35% <0%> (-3.98%) ⬇️
SRC/dlansb.f 62.5% <0%> (-3.29%) ⬇️
SRC/slansb.f 62.5% <0%> (-3.29%) ⬇️
SRC/clansy.f 65.51% <0%> (-3.06%) ⬇️
SRC/slangb.f 72.5% <0%> (-3.02%) ⬇️
SRC/dlangb.f 72.5% <0%> (-3.02%) ⬇️
SRC/clangb.f 72.5% <0%> (-3.02%) ⬇️
SRC/clals0.f 80.16% <0%> (-2.82%) ⬇️
SRC/dlarrk.f 87.8% <0%> (-2.68%) ⬇️
... and 1207 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f24797e...fd8f680. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

langou
langou approved these changes Mar 25, 2021
View reviewed changes

@langou langou left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Excellent! Very elegant. Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@langou langou added this to the LAPACK 3.10.0 milestone Mar 25, 2021
weslleyspereira
weslleyspereira approved these changes Mar 25, 2021
View reviewed changes
@julielangou julielangou modified the milestones: LAPACK 3.10.0, LAPACK 3.9.1 Mar 25, 2021
@julielangou
julielangou merged commit 77a0ceb into Reference-LAPACK:master Mar 25, 2021
christoph-conrads pushed a commit to christoph-conrads/lapack that referenced this pull request May 23, 2021
@julielangou
Merge pull request Reference-LAPACK#382 from vladimir-ch/lapacke/dlan…
e9542ea
…tr-no-alloc-trans

LAPACKE: don't allocate transposed matrix in ?lantr_work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@langou langou langou approved these changes
@weslleyspereira weslleyspereira weslleyspereira approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

LAPACK 3.9.1

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@vladimir-ch @langou @weslleyspereira @julielangou
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.