@@ -75,7 +75,7 @@ Is a form of `vec` which is safe for all values in vector spaces, i.e. if
75
75
is already a vector, like an AbstractVector or Number, it will return said
76
76
AbstractVector or Number.
77
77
78
- ## zeromatrix(u::AbstractVector )
78
+ ## zeromatrix(u)
79
79
80
80
Creates the zero'd matrix version of ` u ` . Note that this is unique because
81
81
` similar(u,length(u),length(u)) ` returns a mutable type, so is not type-matching,
@@ -85,15 +85,24 @@ i.e. you'll get a CPU array from a GPU array. The generic fallback is
85
85
with weird (recursive) broadcast overloads. For higher order tensors, this
86
86
returns the matrix linear operator type which acts on the ` vec ` of the array.
87
87
88
- ## List of things to add
88
+ ## restructure(x,y)
89
+
90
+ Restructures the object ` y ` into a shape of ` x ` , keeping its values intact. For
91
+ simple objects like an ` Array ` , this simply amounts to a reshape. However, for
92
+ more complex objects such as an ` ArrayPartition ` , not all of the structural
93
+ information is adequately contained in the type for standard tools to work. In
94
+ these cases, ` restructure ` gives a way to convert for example an ` Array ` into
95
+ a matching ` ArrayPartition ` .
96
+
97
+ # List of things to add
89
98
90
99
- https://github.com/JuliaLang/julia/issues/22216
91
100
- https://github.com/JuliaLang/julia/issues/22218
92
101
- https://github.com/JuliaLang/julia/issues/22622
93
102
- https://github.com/JuliaLang/julia/issues/25760
94
103
- https://github.com/JuliaLang/julia/issues/25107
95
104
96
- ## Array Types to Handle
105
+ # Array Types to Handle
97
106
98
107
The following common array types are being understood and tested as part of this
99
108
development.
0 commit comments