File tree 1 file changed +2
-5
lines changed 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ function get_field_first_index_offset(
294
294
child_type = fieldtype (S, child_name)
295
295
remaining_field_chain = drop_first (name)
296
296
field_index =
297
- UnrolledUtilities . unrolled_findfirst ( isequal (child_name), fieldnames (S))
297
+ unrolled_filter (i -> fieldname (S, i) == child_name, 1 : fieldcount (S))[ 1 ]
298
298
return DataLayouts. fieldtypeoffset (T, S, field_index) +
299
299
get_field_first_index_offset (remaining_field_chain, T, child_type)
300
300
end
@@ -313,10 +313,7 @@ entries in the `FieldMatrix` `dict`.
313
313
"""
314
314
function get_scalar_keys (dict:: FieldMatrix )
315
315
keys_tuple = unrolled_flatmap (keys (dict). values) do key
316
- entry = values (dict)[UnrolledUtilities. unrolled_findfirst (
317
- isequal (key),
318
- keys (dict). values,
319
- )]
316
+ entry = dict[unrolled_filter (isequal (key), keys (dict). values)[1 ]]
320
317
entry =
321
318
entry isa ColumnwiseBandMatrixField ? entry. entries.:(1 ) : entry
322
319
unrolled_map (
You can’t perform that action at this time.
0 commit comments