JuliaApproximation / JuliaApproximation/ContinuumArrays.jl

Easy orthogonalization against other MulQuasiVectors

Open
#7 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
31
Forks
6
Avg merge
9d 22h
Merged PRs (30d)
2

Description

Sometimes, I need to orthogonalize a MulQuasiVector against a set of
other MulQuasiVectors:
projections
Currently, I do it like this:

const RadialOrbital{T,B<:AbstractQuasiMatrix} = MulQuasiArray{T,1,<:Mul{<:Tuple,<:Tuple{<:B,<:AbstractVector}}}

struct Projector{ΦT,B<:AbstractQuasiMatrix,RO<:RadialOrbital{ΦT,B}}
    ϕs::Vector{RO}
end

projectout!(y::RO, ::Nothing) where RO = y

function projectout!(y::RO, projector::Proj) where {RO,Proj<:Projector}
    yc = y.mul.factors[2]

    for ϕ in projector.ϕs
        c = ϕ'y
        yc .-= c*ϕ.mul.factors[2]
        # y -= c*ϕ # It would be nice if this worked
    end
    y
end

Could we get y -= c*ϕ syntax working? It would be nice if that did not have to be implemented for every kind of basis, but just in ContinuumArrays.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing MulQuasiArray and MulQuasiVector operations used by the Projector example, especially scalar multiplication and subtraction. Reproduce the orthogonalization snippet and investigate whether y -= c*ϕ can use the general ContinuumArrays abstractions. Done means the syntax works for the shown MulQuasiVectors without basis-specific implementations.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.