Skip to content

Commit 3ac2c54

Browse files
committed
include documentation
1 parent 75f4a55 commit 3ac2c54

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/src/types.md

+4
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ Base.cat
9090
SparseArrays.blockdiag
9191
```
9292

93+
### `FillMap``
94+
95+
Type for lazily representing constantly filled matrices.
96+
9397
## Methods
9498

9599
### Multiplication methods

src/LinearMaps.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,14 @@ include("show.jl") # show methods for LinearMap objects
251251
LinearMap(A::LinearMap; kwargs...)::WrappedMap
252252
LinearMap(A::AbstractMatrix; kwargs...)::WrappedMap
253253
LinearMap(J::UniformScaling, M::Int)::UniformScalingMap
254+
LinearMap(λ::Number, M::Int, N::Int) = FillMap(λ, (M, N))::FillMap
255+
LinearMap(λ::Number, dims::Dims{2}) = FillMap(λ, dims)::FillMap
254256
LinearMap{T=Float64}(f, [fc,], M::Int, N::Int = M; kwargs...)::FunctionMap
255257
256258
Construct a linear map object, either from an existing `LinearMap` or `AbstractMatrix` `A`,
257259
with the purpose of redefining its properties via the keyword arguments `kwargs`;
258-
a `UniformScaling` object `J` with specified (square) dimension `M`; or
260+
a `UniformScaling` object `J` with specified (square) dimension `M`; from a `Number`
261+
object to lazily represent filled matrices; or
259262
from a function or callable object `f`. In the latter case, one also needs to specify
260263
the size of the equivalent matrix representation `(M, N)`, i.e., for functions `f` acting
261264
on length `N` vectors and producing length `M` vectors (with default value `N=M`). Preferably,

0 commit comments

Comments
 (0)