Comments (1)
The broadcasting function does not mutate a
. To be equivalent to the loop it would be addX!(a, x) = sum(a .= a .+ x)
, which gives the same error.
In general you will need to make arrays of the right type to store Dual numbers, e.g. using similar(x)
.
from forwarddiff.jl.
Related Issues (20)
- #481 `iszero` workaround HOT 6
- Violating assumptions about Dual comparisons HOT 8
- Is this code a supported use? (single-pass value and derivative) HOT 6
- ERROR: MethodError: no method matching Float32(::ForwardDiff.Dual{ForwardDiff.Tag{var"#11#12", Float32}, Float32, 12}) HOT 3
- MethodError: no method matching getrf!(::CuArray{ForwardDiff.Dual{ForwardDiff.Tag{ODEFunction HOT 1
- Highly invalidating method: promote_rule(::Type{R}, ::Type{ForwardDiff.Dual{T, V, N}}) where {R<:Real, T, V, N} HOT 2
- The Hessian of the `LinearAlgebra.jl` dot is incorrect HOT 1
- Jacobian returns zero matrix HOT 4
- one(::type(Dual)) HOT 1
- Using a Pkg extension to reduce package load time caused by StaticArrays HOT 4
- One call to get f(x) and f'(x)? HOT 1
- Derivative is wrong for this inverse quadratic form HOT 1
- Different results on Intel vs. AMD with ForwardDiff
- Error differentiating through complex power due to isinteger HOT 6
- Type instability in jacobian! filling JacobianResult when using StaticArrays HOT 3
- Is the mutating code the problem here? How could I debug this? HOT 2
- Rationals and Modulo
- `NaNMath` (and `SpecialFunctions`) as extensions? HOT 5
- Broken external link
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forwarddiff.jl.