[Bugzilla] [Bug 6277] Samuel GOUGEON has changed bug_status, resolution

bugzilla.admin at scilab.org bugzilla.admin at scilab.org
Fri Mar 30 15:05:30 CEST 2018


http://bugzilla.scilab.org/show_bug.cgi?id=6277
--------- Bug Summary -----------
Add functions to build multi-diagonal matrixes.

---------- Changed by ------------
sgougeon at free.fr

---------- What changed ----------
bug_status, resolution


Samuel GOUGEON <sgougeon at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Samuel GOUGEON <sgougeon at free.fr> ---
The toeplitz() function is made for this and more.
There is no relevance to build a specific version restricted to only 3 diagonals.
Its cross-referencing in the help was improved recently.

--> b = toeplitz(sparse([1 2 0 3 zeros(1,3)]), sparse([1 4 zeros(1,3)]))
 b  = 

(  7,  5) sparse matrix

(  1,  1)      1.
(  1,  2)      4.
(  2,  1)      2.
(  2,  2)      1.
(  2,  3)      4.
(  3,  2)      2.
(  3,  3)      1.
(  3,  4)      4.
(  4,  1)      3.
(  4,  3)      2.
(  4,  4)      1.
(  4,  5)      4.
(  5,  2)      3.
(  5,  4)      2.
(  5,  5)      1.
(  6,  3)      3.
(  6,  5)      2.
(  7,  4)      3.


--> full(b)
 ans  =
   1.   4.   0.   0.   0.
   2.   1.   4.   0.   0.
   0.   2.   1.   4.   0.
   3.   0.   2.   1.   4.
   0.   3.   0.   2.   1.
   0.   0.   3.   0.   2.
   0.   0.   0.   3.   0.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180330/955531af/attachment.htm>


More information about the Bugzilla mailing list