Skip to content

Tr/refactor fm internal index #2346

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

imreddyTeja
Copy link
Member

@imreddyTeja imreddyTeja commented Jun 11, 2025

TODO:

Update docs

  • Code follows the style guidelines OR N/A.
  • Unit tests are included OR N/A.
  • Code is exercised in an integration test OR N/A.
  • Documentation has been added/updated OR N/A.

Add a function to convert a FieldMatrix where each matrix entry
has an eltype of some struct into a FieldMatrix where each entry
has an eltype of a scalar.

Add additional tests for scalar_matrixfields

Use @test_all in tests

Make suggested changes to tests and field_name_dict.jl

Revert unrolled_findfirst

Clean up field matrix tests and add support for DiagonalMatrixRows

CamelCase struct name

Clean up tests and get_scalar_keys

wip backup

Minimal working with allocs

WIP1

WIP more allocs fix

Assorted cleanup

Fix dx/dx case

reduce code duplication; fix example

Add gpu test

further cleanup, extend diagonalrow

fix names test and comments

Add  docs

docs bugfix

remvoe bad refs

fix docs formatting
@@ -61,7 +61,7 @@ coordinate_axis(::Type{<:LatLongPoint}) = (1, 2)

coordinate_axis(coord::AbstractPoint) = coordinate_axis(typeof(coord))

@inline idxin(I::Tuple{Int}, i::Int) = 1
@inline idxin(I::Tuple{Int}, i::Int) = I[1] == i ? 1 : nothing
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if the original function is correct here because it behaves differently than the other idxin functions.
I found this when I was experimenting with using axis symbols to index with vs numbers.

pre-switch to type space

should work

fix broken tests

bugfix

fix implicit tensor rep tests

WIPP1

working state

Improve readability at cost of concise code

update docs

further cleanup
@imreddyTeja imreddyTeja force-pushed the tr/refactor-fm-internal-index branch from 39ee021 to 14c7eed Compare June 18, 2025 23:20
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.

1 participant