QuantEcon / QuantEcon/BasisMatrices.jl

specialize evalbase based on type of breaks array

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
33
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Right now our evalbase method for SplineParams and LinParams doesn't utilize the information in the type parameter (which specifies the type of the breaks <: AbstractVector)

Cases where breaks::Range could be sped up significantly in at least two places:

  1. computing the indices specifying the lower boundary on the breaks. This could be simplified into rescaling the input point to live on 1:length(breaks) and then adjusting the endpoints
  2. Computing the actual basis matrix: here we wouldn't need to do lookups of adjacent points in breaks and dividing by their difference -- that difference is the same constant for all pairs of adjacent breaks.

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 locating the evalbase methods for SplineParams and LinParams. Compare the existing handling of breaks::Range at the lower-bound index calculation and basis-matrix construction. Done means these Range cases use their regular spacing while preserving the existing evalbase results.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.