Skip to content

Conversation

@avik-pal
Copy link
Collaborator

@avik-pal avik-pal commented Nov 17, 2025

factorization ops are a bit messed up upstream, need to polish those before supporting them.

  • det/logabsdet
  • inv
  • cross
  • rmul!, lmul!, rdiv!, ldiv! -- array and number
  • normalize/normalize! (via __normalize!)
  • fixes accidental promotion in norm
  • issymmetric, ishermitian, isbanded (by extension isdiag)
  • cholesky

Non Linear Algebera additions

  • nextfloat
  • prevfloat

@avik-pal avik-pal marked this pull request as ready for review November 17, 2025 18:24
@avik-pal avik-pal requested a review from wsmoses November 17, 2025 18:24
@avik-pal avik-pal mentioned this pull request Nov 17, 2025
5 tasks

# Base.first is very common usecase for getting first element to get the type
# inside LinearAlgebra.jl
Base.first(x::TracedRArray{T,N}) where {T,N} = @allowscalar(x[1])
Copy link
Member

Choose a reason for hiding this comment

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

do we want to put the allowscalar here? I would've expected not (but we look to what gpuarrays do)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

let me remove this and check if anything breaks. I ended up wrapping more of the functionality manually (mostly because of conditionals)

@avik-pal avik-pal force-pushed the ap/more_linalg_coverage_part2 branch from 2d4485f to ba3251a Compare November 18, 2025 15:07
* refactor: move LU into a separate file

* feat: lower cholesky

* feat: lowering cholesky ldiv

* test: cholesky

* fix: revert change to is symm/hermitian
@avik-pal avik-pal force-pushed the ap/more_linalg_coverage_part2 branch from d6b5975 to 9b183f4 Compare November 18, 2025 15:47
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@avik-pal avik-pal merged commit 417c361 into main Nov 18, 2025
57 of 70 checks passed
@avik-pal avik-pal deleted the ap/more_linalg_coverage_part2 branch November 18, 2025 20:46
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.

3 participants