octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sparse(i, j, v) for N-dim input


From: Kim Hansen
Subject: sparse(i, j, v) for N-dim input
Date: Thu, 15 May 2008 16:45:01 +0200

How about making
  S = sparse (I, J, SV, M, N, NZMAX)
work for multi dimensional I, J and SV ?

The workaround sparse(I(:), J(:), SV(:)) is easy, but I would like
sparse() to check that the dimensions of I, J, and SV were the same
and then create the sparse matrix also for 3+-dimensional input
matrices.

I can implement the change, I just want to hear if it is a bad idea
before I start coding.

-- 
Kim Hansen
Vadgårdsvej 3, 2.tv
2860 Søborg
Fastnet: 3956 2437 -- Mobil: 3091 2437



reply via email to

[Prev in Thread] Current Thread [Next in Thread]