Skip to content

Commit a06d277

Browse files
committed
add history entry
1 parent e4cc72c commit a06d277

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/src/history.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
explicit Khatri-Rao product in memory and then multiplying with the vector; not to
2121
mention the memory savings. Unfortunately, similar efficiency cannot be achieved for the
2222
face-splitting product.
23+
* The construction of function-based `LinearMap`s, typed `FunctionMap`, has been rearranged.
24+
Instead of the convenience constructor `LinearMap{T=Float64}(f, [fc,] M, N=M; kwargs...)`,
25+
it is now recommended to use the newly exported `FunctionMap{T,iip}(f, [fc], M, N; kwargs...)`
26+
constructor. Here, `iip` is either `true` or `false`, and encodes whether `f` (and `fc` if
27+
present) are mutating functions. Previously, this was determined via the `Bool` keyword
28+
argument `ismutating`. The re-design was made in a largely backwards-compatible manner,
29+
though type inference of construction calls via `LinearMaps` is now somewhat limited.
30+
This change allows for a reduction of allocated memory for non-mutating `FunctionMap`s.
2331

2432
## What's new in v3.8
2533

0 commit comments

Comments
 (0)