Julia Programming Language
Saving sufficient information about array to construct a similar one later
General Usage
question
,
array
tictaccat
June 6, 2022, 6:20pm
2
I think this is solved? Close over:
T = typeof(x) ax = axes(x)
and run
similar(T, ax)
.
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
What exactly is an abstract array? (Deciding how to dispatch)
Offtopic
question
10
3214
January 4, 2017
Array reductions (sum, mean, etc.) and abstract functions
Internals & Design
indexing
,
array
5
1453
July 18, 2017
Trojan horse types - a type that takes over the function calling it
Internals & Design
20
1283
December 2, 2019
Help understanding failed optimization when defining Base.similar for AbstractArray interface
Performance
1
477
January 14, 2019
Type signature for nested `AbstractArray`
General Usage
question
1
495
January 8, 2017