We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
vx=range(0,1,length=10) vy=range(0,2,length=20) vz=range(0,1,length=30) M=[[x, x^2+y^2+z^2] for x=vx,y=vy,z=vz]; trapz((vx,vy,vz),M) #-> ERROR: MethodError: no method matching one(::Type{Vector{Float64}})
but the signature for https://github.com/francescoalemanno/Trapz.jl/blob/master/src/kernels.jl#L19 is M <: AbstractArray{Tm,Nm}. Can Trapz.jl be extended to vector integrands?
M <: AbstractArray{Tm,Nm}
Trapz.jl
The text was updated successfully, but these errors were encountered:
just use
[trapz((vx,vy,vz),getindex.(M,i)) for i = 1:2]
Sorry, something went wrong.
No branches or pull requests
but the signature for https://github.com/francescoalemanno/Trapz.jl/blob/master/src/kernels.jl#L19 is
M <: AbstractArray{Tm,Nm}
. CanTrapz.jl
be extended to vector integrands?The text was updated successfully, but these errors were encountered: