Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Zero nonzeros? #23

Closed
dpo opened this issue Mar 14, 2020 · 1 comment
Closed

Zero nonzeros? #23

dpo opened this issue Mar 14, 2020 · 1 comment

Comments

@dpo
Copy link

dpo commented Mar 14, 2020

This is a follow-up of #22 where I try to resolve the issue by multiplying explicitly. However, the following simple example suggests there are no nonzeros in the Jacobian:

julia> function fun!(in, out)
         out .= 3 * in
         return out
       end
fun! (generic function with 1 method)

julia> sparsity_pattern = sparsity!(fun!, input, output)
Explored path: SparsityDetection.Path(Bool[], 1)
30×30 SparseMatrixCSC{Bool,Int64} with 0 stored entries

We expect nonzeros on the diagonal.

@shashi
Copy link
Collaborator

shashi commented Apr 2, 2020

The convention is first argument is the output, second is the input.

It works.

@shashi shashi closed this as completed Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants