Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not sure that normalize is working when nodenames are specified #133

Open
mathlawguy opened this issue Jul 25, 2021 · 0 comments
Open

Not sure that normalize is working when nodenames are specified #133

mathlawguy opened this issue Jul 25, 2021 · 0 comments

Comments

@mathlawguy
Copy link

I apologize if this is user error, as I am pretty new to Julia. When I use normalize with just the factor itself, the function performs as expected.

normalize(Factor([:a, :b], Float64[1 2; 3 4]))

But when I ask it to normalize with respect to a dimension, I get a MethodError.

normalize(Factor([:a, :b], Float64[1 2; 3 4]),:b)

MethodError: no method matching sum(::typeof(abs), ::Matrix{Float64}, ::Vector{Union{Nothing, Int64}})
Closest candidates are:
sum(::Any, ::AbstractArray; dims, kw...) at reducedim.jl:874

Am I doing something wrong or is there a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant