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

Extends ctranspose() to Tridiagonal matrices #2608

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Extends ctranspose() to Tridiagonal matrices
  • Loading branch information
jiahao committed Mar 19, 2013
commit a845ea09a2067c2e4fe02c986b96e75c375eb36b
3 changes: 3 additions & 0 deletions base/linalg/tridiag.jl
Original file line number Diff line number Diff line change
@@ -117,6 +117,9 @@ copy(M::Tridiagonal) = Tridiagonal(M.dl, M.d, M.du)
round(M::Tridiagonal) = Tridiagonal(round(M.dl), round(M.d), round(M.du))
iround(M::Tridiagonal) = Tridiagonal(iround(M.dl), iround(M.d), iround(M.du))

import Base.ctranspose
ctranspose(M::Tridiagonal) = Tridiagonal(M.du, M.d, M.dl)

## Solvers

#### Tridiagonal matrix routines ####