Skip to content

Commit f3a5df7

Browse files
color->colorvec
1 parent 0828544 commit f3a5df7

File tree

5 files changed

+68
-68
lines changed

5 files changed

+68
-68
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DiffEqDiffTools"
22
uuid = "01453d9d-ee7c-5054-8395-0335cb756afa"
3-
version = "1.1.1"
3+
version = "1.2.0"
44

55
[deps]
66
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ variables. This is summarized as:
4343

4444
In all functions, the inplace form is `f!(dx,x)` while the out of place form is `dx = f(x)`.
4545

46-
## Color Vectors
46+
## colorvec Vectors
4747

48-
Color vectors are allowed to be supplied to the Jacobian routines, and these are
48+
colorvec vectors are allowed to be supplied to the Jacobian routines, and these are
4949
the directional derivatives for constructing the Jacobian. For example, an accurate
5050
NxN tridiagonal Jacobian can be computed in just 4 `f` calls by using
51-
`color=repeat(1:3,N÷3)`. For information on automatically generating color
51+
`colorvec=repeat(1:3,N÷3)`. For information on automatically generating colorvec
5252
vectors of sparse matrices, see [SparseDiffTools.jl](https://github.com/JuliaDiffEq/SparseDiffTools.jl).
5353

5454
Hessian coloring support is coming soon!
@@ -192,7 +192,7 @@ DiffEqDiffTools.finite_difference_jacobian(
192192
inplace :: Type{Val{T3}}=Val{true};
193193
relstep=default_relstep(fdtype, eltype(x)),
194194
absstep=relstep,
195-
color = eachindex(x),
195+
colorvec = eachindex(x),
196196
sparsity = nothing)
197197

198198
finite_difference_jacobian!(J::AbstractMatrix,
@@ -204,7 +204,7 @@ finite_difference_jacobian!(J::AbstractMatrix,
204204
f_in :: Union{T2,Nothing}=nothing;
205205
relstep=default_relstep(fdtype, eltype(x)),
206206
absstep=relstep,
207-
color = eachindex(x),
207+
colorvec = eachindex(x),
208208
sparsity = J isa SparseMatrixCSC ? J : nothing)
209209

210210
# Cached
@@ -214,7 +214,7 @@ DiffEqDiffTools.finite_difference_jacobian(
214214
cache::JacobianCache;
215215
relstep=default_relstep(fdtype, eltype(x)),
216216
absstep=relstep,
217-
color = eachindex(x),
217+
colorvec = eachindex(x),
218218
sparsity = nothing)
219219

220220
DiffEqDiffTools.finite_difference_jacobian!(
@@ -224,7 +224,7 @@ DiffEqDiffTools.finite_difference_jacobian!(
224224
cache::JacobianCache;
225225
relstep=default_relstep(fdtype, eltype(x)),
226226
absstep=relstep,
227-
color = cache.color,
227+
colorvec = cache.colorvec,
228228
sparsity = cache.sparsity)
229229
```
230230

@@ -236,7 +236,7 @@ DiffEqDiffTools.JacobianCache(
236236
fdtype :: Type{T1} = Val{:central},
237237
returntype :: Type{T2} = eltype(x),
238238
inplace :: Type{Val{T3}} = Val{true};
239-
color = eachindex(x)
239+
colorvec = eachindex(x)
240240
sparsity = nothing)
241241
```
242242

@@ -252,7 +252,7 @@ DiffEqDiffTools.JacobianCache(
252252
fdtype :: Type{T1} = Val{:central},
253253
returntype :: Type{T2} = eltype(fx),
254254
inplace :: Type{Val{T3}} = Val{true};
255-
color = eachindex(x),
255+
colorvec = eachindex(x),
256256
sparsity = nothing)
257257
```
258258

0 commit comments

Comments
 (0)