Skip to content

add state argument and dimension constraints to specialmatrices…#1165

Open
srinjoy933 wants to merge 6 commits intofortran-lang:masterfrom
srinjoy933:doc-specialmatrices-specs
Open

add state argument and dimension constraints to specialmatrices…#1165
srinjoy933 wants to merge 6 commits intofortran-lang:masterfrom
srinjoy933:doc-specialmatrices-specs

Conversation

@srinjoy933
Copy link
Copy Markdown
Contributor

solve #1164

@srinjoy933
Copy link
Copy Markdown
Contributor Author

HEY @jvdp1 @jalvesz please suggest me if any changes are required .

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.64%. Comparing base (72698fd) to head (f0cc0a8).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1165      +/-   ##
==========================================
- Coverage   68.66%   68.64%   -0.02%     
==========================================
  Files         408      408              
  Lines       13619    13619              
  Branches     1537     1537              
==========================================
- Hits         9351     9349       -2     
- Misses       4268     4270       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the stdlib_specialmatrices specification to match the existing tridiagonal constructor overloads and operator requirements, addressing the documentation gaps described in issue #1164.

Changes:

  • Documented the optional state argument in tridiagonal constructors.
  • Documented the dimension (n) matching requirement for +/- operators in addition to type/kind matching.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@loiseaujc loiseaujc left a comment

Choose a reason for hiding this comment

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

Basic PR simply rewording some things, but valid anyway. Already applied the suggestions from Copilot. LGTM.

Copy link
Copy Markdown
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

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

thank you @srinjoy933 . Overall LGTM. Could you check the name of the variable in the code, please?

- To construct a tridiagonal matrix from already allocated arrays `dl` (lower diagonal, size `n-1`), `dv` (main diagonal, size `n`) and `du` (upper diagonal, size `n-1`):

`A = ` [[stdlib_specialmatrices(module):tridiagonal(interface)]] `(dl, dv, du)`
`A = ` [[stdlib_specialmatrices(module):tridiagonal(interface)]] `(dl, dv, du [, state])`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If I am correct, the variable state is callde err in the code. I suggest to keep err to keep the code and the specs aligned.

@srinjoy933 srinjoy933 requested review from jvdp1 and loiseaujc April 1, 2026 14:51
@srinjoy933
Copy link
Copy Markdown
Contributor Author

hey @jvdp1 I have made the changes that you have suggested .Please suggest me if any more changes are required

Copy link
Copy Markdown
Member

@jvdp1 jvdp1 left a comment

Choose a reason for hiding this comment

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

thank you @srinjoy933 for correcting the specs. This PR is now ready to be merged IMO.

@jvdp1
Copy link
Copy Markdown
Member

jvdp1 commented Apr 4, 2026

@srinjoy933 could you resolve the conflict, please? Once done, this PR will be ready to be merge IMO.

@srinjoy933 srinjoy933 requested a review from jvdp1 April 4, 2026 06:53
@srinjoy933
Copy link
Copy Markdown
Contributor Author

hey @jvdp1 i have resolved that conflict issue ,now it is ready to be merged.

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.

4 participants