Anybody else get a "no method sparse(Int64, Int64, Array{Int64,1}, Int64,
Int64, Function)" when you try b = sparse(2,1,-1,10,1), or just me (win64,
bf709c)?
Aside from that, A\full(b) should work in this case.
On Sunday, April 13, 2014 11:40:02 PM UTC-7, Jameson wrote:
>
> IIRC, spare division requires b to be a dense vector.
>
> However, I don't suppose there's a reason Julia can't do the
> conversion. Open an issue, and if someone has a reason it isn't a good
> idea, they'll say so and close it. (you are welcome to still reply
> and/or reopen it at that point too). As Andreas mentioned, it helps if
> you can include a complete snippet of code that can be pasted into the
> terminal to repeat the issue
>
> On Mon, Apr 14, 2014 at 2:11 AM, Andreas Noack Jensen
> <[email protected] <javascript:>> wrote:
> > Hi Kai
> >
> > Welcome to Julia and thank you for reporting the problem. It is good
> > practice to include an example that can be copy-pasted into the
> terminal. It
> > makes it easier to investigate the problem. Please also provide the
> output
> > from versioninfo().
> >
> >
> > 2014-04-14 3:32 GMT+02:00 coolzai <[email protected] <javascript:>>:
> >
> >> Hi,
> >> I have two sparse matrix. For example A = sparse(i,j,v); b =
> >> sparse(2,1,-1,10,1);
> >>
> >> I want to solve the equation Ax = b... when I try to do that: A\b,
> it
> >> will return error:
> >>
> >> ERROR: no method
> >> A_ldiv_B!(SparseMatrixCSC{Float64,Int64},SparseMatrixCSC{Int64,Int64})
> >>
> >> in \ at linalg/generic.jl:108
> >>
> >>
> >> I was wondering how can I solve the linear equation?
> >>
> >>
> >> Thanks
> >>
> >> Kai
> >
> >
> >
> >
> > --
> > Med venlig hilsen
> >
> > Andreas Noack Jensen
>