Skip to content

add transpose and adjoint#41

Open
PetrKryslUCSD wants to merge 1 commit into
gridap:masterfrom
PetrKryslUCSD:master
Open

add transpose and adjoint#41
PetrKryslUCSD wants to merge 1 commit into
gridap:masterfrom
PetrKryslUCSD:master

Conversation

@PetrKryslUCSD
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Member

@JordiManyer JordiManyer left a comment

Choose a reason for hiding this comment

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

Hi @PetrKryslUCSD, sorry for the delay. For some reason github does not put these PRs in my inbox.

I've made some minor comments, I think just typos left out from development. Could you also pull from master?

Cheers!

Comment thread src/SparseMatrixCSR.jl

"""
colvals(S::SparseMatrixCSR{Bi}) where {Bi}
colvals(S::SparseMatrixCSR)
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.

Is there a reason to split the docstring from the function? I think this might just be a mistake.

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.

Also, is there a reason you changed the docstring? Bi does get used within the documentation of the function itself, so it might be better if it stays there?

Comment thread src/SparseMatrixCSR.jl
Return the range of indices to the structural nonzero values of a
sparse matrix row. The returned range of indices is always 1-based even for `Bi != 1`.
"""
nzrange(S::SparseMatrixCSR{Bi}, row::Integer) where {Bi} = S.rowptr[row]+getoffset(S):S.rowptr[row+1]-Bi
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.

I think this also got indented by mistake? Both function and docstring look weird.

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.

2 participants