You can subscribe to this list here.
2001 
_{Jan}

_{Feb}

_{Mar}

_{Apr}

_{May}

_{Jun}

_{Jul}
(10) 
_{Aug}
(5) 
_{Sep}
(3) 
_{Oct}
(41) 
_{Nov}
(41) 
_{Dec}
(33) 

2002 
_{Jan}
(75) 
_{Feb}
(10) 
_{Mar}
(170) 
_{Apr}
(174) 
_{May}
(66) 
_{Jun}
(11) 
_{Jul}
(10) 
_{Aug}
(44) 
_{Sep}
(73) 
_{Oct}
(28) 
_{Nov}
(139) 
_{Dec}
(52) 
2003 
_{Jan}
(35) 
_{Feb}
(93) 
_{Mar}
(62) 
_{Apr}
(10) 
_{May}
(55) 
_{Jun}
(70) 
_{Jul}
(37) 
_{Aug}
(16) 
_{Sep}
(56) 
_{Oct}
(31) 
_{Nov}
(57) 
_{Dec}
(83) 
2004 
_{Jan}
(85) 
_{Feb}
(67) 
_{Mar}
(27) 
_{Apr}
(37) 
_{May}
(75) 
_{Jun}
(85) 
_{Jul}
(160) 
_{Aug}
(68) 
_{Sep}
(104) 
_{Oct}
(25) 
_{Nov}
(39) 
_{Dec}
(23) 
2005 
_{Jan}
(10) 
_{Feb}
(45) 
_{Mar}
(43) 
_{Apr}
(19) 
_{May}
(108) 
_{Jun}
(31) 
_{Jul}
(41) 
_{Aug}
(23) 
_{Sep}
(65) 
_{Oct}
(58) 
_{Nov}
(44) 
_{Dec}
(54) 
2006 
_{Jan}
(96) 
_{Feb}
(27) 
_{Mar}
(69) 
_{Apr}
(59) 
_{May}
(67) 
_{Jun}
(35) 
_{Jul}
(13) 
_{Aug}
(461) 
_{Sep}
(160) 
_{Oct}
(399) 
_{Nov}
(32) 
_{Dec}
(72) 
2007 
_{Jan}
(316) 
_{Feb}
(305) 
_{Mar}
(318) 
_{Apr}
(54) 
_{May}
(194) 
_{Jun}
(173) 
_{Jul}
(282) 
_{Aug}
(91) 
_{Sep}
(227) 
_{Oct}
(365) 
_{Nov}
(168) 
_{Dec}
(18) 
2008 
_{Jan}
(71) 
_{Feb}
(111) 
_{Mar}
(155) 
_{Apr}
(173) 
_{May}
(70) 
_{Jun}
(67) 
_{Jul}
(55) 
_{Aug}
(83) 
_{Sep}
(32) 
_{Oct}
(68) 
_{Nov}
(80) 
_{Dec}
(29) 
2009 
_{Jan}
(46) 
_{Feb}
(18) 
_{Mar}
(95) 
_{Apr}
(76) 
_{May}
(140) 
_{Jun}
(98) 
_{Jul}
(84) 
_{Aug}
(123) 
_{Sep}
(94) 
_{Oct}
(131) 
_{Nov}
(142) 
_{Dec}
(125) 
2010 
_{Jan}
(128) 
_{Feb}
(158) 
_{Mar}
(172) 
_{Apr}
(134) 
_{May}
(94) 
_{Jun}
(84) 
_{Jul}
(32) 
_{Aug}
(127) 
_{Sep}
(167) 
_{Oct}
(109) 
_{Nov}
(69) 
_{Dec}
(78) 
2011 
_{Jan}
(39) 
_{Feb}
(58) 
_{Mar}
(52) 
_{Apr}
(47) 
_{May}
(56) 
_{Jun}
(76) 
_{Jul}
(55) 
_{Aug}
(54) 
_{Sep}
(165) 
_{Oct}
(255) 
_{Nov}
(328) 
_{Dec}
(263) 
2012 
_{Jan}
(82) 
_{Feb}
(147) 
_{Mar}
(400) 
_{Apr}
(216) 
_{May}
(209) 
_{Jun}
(160) 
_{Jul}
(86) 
_{Aug}
(141) 
_{Sep}
(156) 
_{Oct}
(6) 
_{Nov}

_{Dec}

2015 
_{Jan}

_{Feb}

_{Mar}

_{Apr}

_{May}

_{Jun}

_{Jul}
(1) 
_{Aug}

_{Sep}
(1) 
_{Oct}

_{Nov}
(1) 
_{Dec}
(2) 
2016 
_{Jan}

_{Feb}
(2) 
_{Mar}
(2) 
_{Apr}
(1) 
_{May}
(1) 
_{Jun}
(2) 
_{Jul}
(1) 
_{Aug}
(1) 
_{Sep}

_{Oct}

_{Nov}
(1) 
_{Dec}

S  M  T  W  T  F  S 

1
(4) 
2
(8) 
3
(3) 
4
(6) 
5
(16) 
6
(11) 
7

8
(4) 
9
(6) 
10

11
(16) 
12
(6) 
13
(9) 
14
(3) 
15
(17) 
16
(17) 
17
(23) 
18
(15) 
19
(10) 
20
(2) 
21
(7) 
22
(3) 
23
(7) 
24
(8) 
25
(4) 
26
(2) 
27
(1) 
28
(1) 
29
(1) 
30
(6) 





From: <paramaniac@us...>  20120419 18:28:13

Revision: 10298 http://octave.svn.sourceforge.net/octave/?rev=10298&view=rev Author: paramaniac Date: 20120419 18:28:07 +0000 (Thu, 19 Apr 2012) Log Message:  controldevel: revert minor changes Modified Paths:  trunk/octaveforge/extra/controldevel/devel/Destillation.m trunk/octaveforge/extra/controldevel/devel/PowerPlant.m Modified: trunk/octaveforge/extra/controldevel/devel/Destillation.m ===================================================================  trunk/octaveforge/extra/controldevel/devel/Destillation.m 20120419 13:48:22 UTC (rev 10297) +++ trunk/octaveforge/extra/controldevel/devel/Destillation.m 20120419 18:28:07 UTC (rev 10298) @@ 74,8 +74,8 @@ err = norm (Y_dest  y, 1) / norm (Y_dest, 1) figure (1) plot (t, Y_dest, 'b') %plot (t, Y_dest, 'b', t, y, 'r') +%plot (t, Y_dest, 'b') +plot (t, Y_dest, 'b', t, y, 'r') legend ('y measured', 'y simulated', 'location', 'southeast') Modified: trunk/octaveforge/extra/controldevel/devel/PowerPlant.m ===================================================================  trunk/octaveforge/extra/controldevel/devel/PowerPlant.m 20120419 13:48:22 UTC (rev 10297) +++ trunk/octaveforge/extra/controldevel/devel/PowerPlant.m 20120419 18:28:07 UTC (rev 10298) @@ 61,7 +61,7 @@ dat = iddata (Y, U, tsam, 'outname', outname, 'inname', inname) [sys, x0] = ident (dat, 10, 7) % s=10, n=8 +[sys, x0] = ident (dat, 10, 8) % s=10, n=8 [y, t] = lsim (sys, U, [], x0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <rafavzqz@us...>  20120419 13:48:33

Revision: 10297 http://octave.svn.sourceforge.net/octave/?rev=10297&view=rev Author: rafavzqz Date: 20120419 13:48:22 +0000 (Thu, 19 Apr 2012) Log Message:  Fixed the number of patches Modified Paths:  trunk/octaveforge/extra/nurbs/inst/nrbexport.m Modified: trunk/octaveforge/extra/nurbs/inst/nrbexport.m ===================================================================  trunk/octaveforge/extra/nurbs/inst/nrbexport.m 20120419 10:29:20 UTC (rev 10296) +++ trunk/octaveforge/extra/nurbs/inst/nrbexport.m 20120419 13:48:22 UTC (rev 10297) @@ 45,7 +45,7 @@ fprintf (fid, '%s\n', ['# ' date]); fprintf (fid, '%s\n', '#'); fprintf (fid, '%2i', ndim, 1); +fprintf (fid, '%2i', ndim, npatch); fprintf (fid, '\n'); for iptc = 1:npatch fprintf (fid, '%s %i', 'PATCH', iptc); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <carandraug@us...>  20120419 10:29:32

Revision: 10296 http://octave.svn.sourceforge.net/octave/?rev=10296&view=rev Author: carandraug Date: 20120419 10:29:20 +0000 (Thu, 19 Apr 2012) Log Message:  linearalgebra: update COPYING file to say check individual files Modified Paths:  trunk/octaveforge/main/linearalgebra/COPYING Modified: trunk/octaveforge/main/linearalgebra/COPYING ===================================================================  trunk/octaveforge/main/linearalgebra/COPYING 20120419 10:14:15 UTC (rev 10295) +++ trunk/octaveforge/main/linearalgebra/COPYING 20120419 10:29:20 UTC (rev 10296) @@ 1,337 +1 @@  GNU GENERAL PUBLIC LICENSE  Version 2, June 1991   Copyright (C) 1989, 1991 Free Software Foundation, Inc. <http://fsf.org/>;  Everyone is permitted to copy and distribute verbatim copies  of this license document, but changing it is not allowed.   Preamble   The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free softwareto make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too.   When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.   To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.   For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.   We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.   Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.   Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.   The precise terms and conditions for copying, distribution and modification follow.   GNU GENERAL PUBLIC LICENSE  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION   0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".  Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.   1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.  You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.   2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:   a) You must cause the modified files to carry prominent notices  stating that you changed the files and the date of any change.   b) You must cause any work that you distribute or publish, that in  whole or in part contains or is derived from the Program or any  part thereof, to be licensed as a whole at no charge to all third  parties under the terms of this License.   c) If the modified program normally reads commands interactively  when run, you must cause it, when started running for such  interactive use in the most ordinary way, to print or display an  announcement including an appropriate copyright notice and a  notice that there is no warranty (or else, saying that you provide  a warranty) and that users may redistribute the program under  these conditions, and telling the user how to view a copy of this  License. (Exception: if the Program itself is interactive but  does not normally print such an announcement, your work based on  the Program is not required to print an announcement.)  These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.  Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.  In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.   3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:   a) Accompany it with the complete corresponding machinereadable  source code, which must be distributed under the terms of Sections  1 and 2 above on a medium customarily used for software interchange; or,   b) Accompany it with a written offer, valid for at least three  years, to give any third party, for a charge no more than your  cost of physically performing source distribution, a complete  machinereadable copy of the corresponding source code, to be  distributed under the terms of Sections 1 and 2 above on a medium  customarily used for software interchange; or,   c) Accompany it with the information you received as to the offer  to distribute corresponding source code. (This alternative is  allowed only for noncommercial distribution and only if you  received the program in object code or executable form with such  an offer, in accord with Subsection b above.)  The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.  If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.   4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.   5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.   6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.   7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royaltyfree redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.  If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.  It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.  This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.   8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.   9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.  Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.   10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.   NO WARRANTY   11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.   12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.   END OF TERMS AND CONDITIONS   How to Apply These Terms to Your New Programs   If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.   To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.   <one line to give the program's name and a brief idea of what it does.>  Copyright (C) <year> <name of author>   This program is free software; you can redistribute it and/or modify  it under the terms of the GNU General Public License as published by  the Free Software Foundation; either version 2 of the License, or  (at your option) any later version.   This program is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the  GNU General Public License for more details.   You should have received a copy of the GNU General Public License  along with this program; if not, see <http://www.gnu.org/licenses/>;.  Also add information on how to contact you by electronic and paper mail.  If the program is interactive, make it output a short notice like this when it starts in an interactive mode:   Gnomovision version 69, Copyright (C) year name of author  Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.  This is free software, and you are welcome to redistribute it  under certain conditions; type `show c' for details.  The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouseclicks or menu itemswhatever suits your program.  You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:   Yoyodyne, Inc., hereby disclaims all copyright interest in the program  `Gnomovision' (which makes passes at compilers) written by James Hacker.   <signature of Ty Coon>, 1 April 1989  Ty Coon, President of Vice  This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. +See individual files for licenses This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <carandraug@us...>  20120419 10:14:22

Revision: 10295 http://octave.svn.sourceforge.net/octave/?rev=10295&view=rev Author: carandraug Date: 20120419 10:14:15 +0000 (Thu, 19 Apr 2012) Log Message:  circulant_eig: set warning of broadcasting in a unwind_protect block Modified Paths:  trunk/octaveforge/main/linearalgebra/inst/circulant_eig.m Modified: trunk/octaveforge/main/linearalgebra/inst/circulant_eig.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/circulant_eig.m 20120419 10:01:50 UTC (rev 10294) +++ trunk/octaveforge/main/linearalgebra/inst/circulant_eig.m 20120419 10:14:15 UTC (rev 10295) @@ 29,23 +29,34 @@ function [a, b] = circulant_eig (v)  warning ("off", "Octave:broadcast"); #the code below uses broadcasting + ## FIXME when warning for broadcastin is turned off by default, this + ## unwind_protect block could be removed  #find the eigenvalues  n = numel(v);  lambda = ones(n, 1);  s = (0:(n1));  lambda = sum(v .* exp(2*pi*i*s'*s/n))'; + ## we are using broadcasting on the code below so we turn off the + ## warnings but will restore to previous state at the end + bc_warn = warning ("query", "Octave:broadcast"); + unwind_protect + warning ("off", "Octave:broadcast");  if nargout < 2  a = lambda;  return  endif + #find the eigenvalues + n = numel(v); + lambda = ones(n, 1); + s = (0:(n1)); + lambda = sum(v .* exp(2*pi*i*s'*s/n))';  #find the eigenvectors (which in fact do not depend on v)  a = exp(2*i*pi*s'*s/n) / sqrt(n);  b = diag(lambda); + if nargout < 2 + a = lambda; + return + endif + #find the eigenvectors (which in fact do not depend on v) + a = exp(2*i*pi*s'*s/n) / sqrt(n); + b = diag(lambda); + unwind_protect_cleanup + ## restore broadcats warning status + warning (bc_warn.state, "Octave:broadcast"); + end_unwind_protect + endfunction %!shared v,C,vs,lambda This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <carandraug@us...>  20120419 10:02:02

Revision: 10294 http://octave.svn.sourceforge.net/octave/?rev=10294&view=rev Author: carandraug Date: 20120419 10:01:50 +0000 (Thu, 19 Apr 2012) Log Message:  linearalgebra: update license to GPLv3+ Modified Paths:  trunk/octaveforge/main/linearalgebra/DESCRIPTION trunk/octaveforge/main/linearalgebra/inst/cartprod.m trunk/octaveforge/main/linearalgebra/inst/circulant_eig.m trunk/octaveforge/main/linearalgebra/inst/circulant_inv.m trunk/octaveforge/main/linearalgebra/inst/circulant_make_matrix.m trunk/octaveforge/main/linearalgebra/inst/circulant_matrix_vector_product.m trunk/octaveforge/main/linearalgebra/inst/cod.m trunk/octaveforge/main/linearalgebra/inst/condeig.m trunk/octaveforge/main/linearalgebra/inst/funm.m trunk/octaveforge/main/linearalgebra/inst/lobpcg.m trunk/octaveforge/main/linearalgebra/inst/ndcovlt.m trunk/octaveforge/main/linearalgebra/inst/rotparams.m trunk/octaveforge/main/linearalgebra/inst/rotv.m trunk/octaveforge/main/linearalgebra/inst/smwsolve.m trunk/octaveforge/main/linearalgebra/inst/thfm.m trunk/octaveforge/main/linearalgebra/src/CmplxGSVD.cc trunk/octaveforge/main/linearalgebra/src/CmplxGSVD.h trunk/octaveforge/main/linearalgebra/src/dbleGSVD.cc trunk/octaveforge/main/linearalgebra/src/dbleGSVD.h trunk/octaveforge/main/linearalgebra/src/gsvd.cc trunk/octaveforge/main/linearalgebra/src/pgmres.cc Modified: trunk/octaveforge/main/linearalgebra/DESCRIPTION ===================================================================  trunk/octaveforge/main/linearalgebra/DESCRIPTION 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/DESCRIPTION 20120419 10:01:50 UTC (rev 10294) @@ 1,12 +1,12 @@ Name: LinearAlgebra +Name: Linearalgebra Version: 2.1.0 Date: 20111106 Author: Various Authors Maintainer: The Octave Community Title: Linear Algebra. +Author: various authors +Maintainer: OctaveForge community <octavedev@...> +Title: Linear algebra. Description: Additional linear algebra code, including general SVD and matrix functions. Categories: LinearAlgebra +Categories: Linear algebra Depends: octave (>= 3.2.3), general (>= 1.3.0) Autoload: no License: GPL version 3 or later +License: GPLv3+, LGPLv3+ Url: http://octave.sf.net Modified: trunk/octaveforge/main/linearalgebra/inst/cartprod.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/cartprod.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/cartprod.m 20120419 10:01:50 UTC (rev 10294) @@ 1,21 +1,21 @@ ## Copyright (C) 2008 Muthiah Annamalai <muthiah.annamalai@...> ## Copyright (C) 2010 VZLU Prague ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. ## ## You should have received a copy of the GNU General Public License ## along with this program; If not, see <http://www.gnu.org/licenses/>;. +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. +## +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn {Function File} {} cartprod (@var{varargin} ) +## @deftypefn {Function File} {} cartprod (@var{varargin}) ## ## Computes the cartesian product of given column vectors ( row vectors ). ## The vector elements are assumend to be numbers. @@ 56,6 +56,4 @@ endfunction %! %!assert(cartprod(1:2,0:1),[1 0; 2 0; 1 1; 2 1]) %! Modified: trunk/octaveforge/main/linearalgebra/inst/circulant_eig.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/circulant_eig.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/circulant_eig.m 20120419 10:01:50 UTC (rev 10294) @@ 1,21 +1,21 @@ ## Copyright (C) 2012 Nir Krakauer +## Copyright (C) 2012 Nir Krakauer <nkrakauer@...> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. ## ## You should have received a copy of the GNU General Public License ## along with this program; If not, see <http://www.gnu.org/licenses/>;. +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn{Function File}{[@var{lambda}] =} circulant_eig (@var{v}) ## @deftypefnx{Function File}{[@var{vs}, @var{lambda}] =} circulant_eig (@var{v}) +## @deftypefn{Function File} {@var{lambda} =} circulant_eig (@var{v}) +## @deftypefnx{Function File} {[@var{vs}, @var{lambda}] =} circulant_eig (@var{v}) ## ## Fast, compact calculation of eigenvalues and eigenvectors of a circulant matrix@* ## Given an @var{n}*1 vector @var{v}, return the eigenvalues @var{lambda} and optionally eigenvectors @var{vs} of the @var{n}*@var{n} circulant matrix @var{C} that has @var{v} as its first column @@ 24,35 +24,30 @@ ## ## Reference: Robert M. Gray, Toeplitz and Circulant Matrices: A Review, Now Publishers, http://ee.stanford.edu/~gray/toeplitz.pdf, Chapter 3 ## ## @end deftypefn ## @seealso{circulant_make_matrix, circulant_matrix_vector_product, circulant_inv} +## @end deftypefn ## Author: Nir Krakauer <nkrakauer@...> +function [a, b] = circulant_eig (v) function [a, b] = circulant_eig(v) + warning ("off", "Octave:broadcast"); #the code below uses broadcasting + #find the eigenvalues + n = numel(v); + lambda = ones(n, 1); + s = (0:(n1)); + lambda = sum(v .* exp(2*pi*i*s'*s/n))'; warning ("off", "Octave:broadcast"); #the code below uses broadcasting + if nargout < 2 + a = lambda; + return + endif #find the eigenvalues n = numel(v); lambda = ones(n, 1); s = (0:(n1)); lambda = sum(v .* exp(2*pi*i*s'*s/n))'; + #find the eigenvectors (which in fact do not depend on v) + a = exp(2*i*pi*s'*s/n) / sqrt(n); + b = diag(lambda); if nargout < 2  a = lambda;  return endif  #find the eigenvectors (which in fact do not depend on v) a = exp(2*i*pi*s'*s/n) / sqrt(n); b = diag(lambda);   endfunction  %!shared v,C,vs,lambda %! v = [1 2 3]'; %! C = circulant_make_matrix(v); Modified: trunk/octaveforge/main/linearalgebra/inst/circulant_inv.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/circulant_inv.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/circulant_inv.m 20120419 10:01:50 UTC (rev 10294) @@ 1,20 +1,20 @@ ## Copyright (C) 2012 Nir Krakauer +## Copyright (C) 2012 Nir Krakauer <nkrakauer@...> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. ## ## You should have received a copy of the GNU General Public License ## along with this program; If not, see <http://www.gnu.org/licenses/>;. +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn{Function File}{[@var{c}] =} circulant_inv (@var{v}) +## @deftypefn{Function File} {@var{c} =} circulant_inv (@var{v}) ## ## Fast, compact calculation of inverse of a circulant matrix@* ## Given an @var{n}*1 vector @var{v}, return the inverse @var{c} of the @var{n}*@var{n} circulant matrix @var{C} that has @var{v} as its first column @@ 26,24 +26,19 @@ ## ## Reference: Robert M. Gray, Toeplitz and Circulant Matrices: A Review, Now Publishers, http://ee.stanford.edu/~gray/toeplitz.pdf, Chapter 3 ## ## @end deftypefn ## @seealso{circulant_make_matrix, circulant_matrix_vector_product, circulant_eig} +## @end deftypefn ## Author: Nir Krakauer <nkrakauer@...>  function c = circulant_inv(v) + ## Find the eigenvalues and eigenvectors + [vs, lambda] = circulant_eig(v); ## Find the eigenvalues and eigenvectors [vs, lambda] = circulant_eig(v); + ## Find the first column of the inverse + c = vs * diag(1 ./ diag(lambda)) * conj(vs(:, 1)); ## Find the first column of the inverse c = vs * diag(1 ./ diag(lambda)) * conj(vs(:, 1));   endfunction  %!shared v %! v = [1 2 3]'; %!assert (make_circulant_matrix(circulant_inv(v)), inv(make_circulant_matrix(v)), 10*eps); Modified: trunk/octaveforge/main/linearalgebra/inst/circulant_make_matrix.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/circulant_make_matrix.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/circulant_make_matrix.m 20120419 10:01:50 UTC (rev 10294) @@ 1,20 +1,20 @@ ## Copyright (C) 2012 Nir Krakauer +## Copyright (C) 2012 Nir Krakauer <nkrakauer@...> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. ## ## You should have received a copy of the GNU General Public License ## along with this program; If not, see <http://www.gnu.org/licenses/>;. +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn{Function File}{[@var{C}] =} circulant_make_matrix(@var{v}) +## @deftypefn{Function File} {@var{C} =} circulant_make_matrix (@var{v}) ## ## Produce a full circulant matrix given the first column@* ## Given an @var{n}*1 vector @var{v}, returns the @var{n}*@var{n} circulant matrix @var{C} where @var{v} is the left column and all other columns are downshifted versions of @var{v} @@ 23,22 +23,17 @@ ## ## Reference: Gene H. Golub and Charles F. Van Loan, Matrix Computations, 3rd Ed., Section 4.7.7 ## ## @end deftypefn ## @seealso{circulant_matrix_vector_product, circulant_eig, circulant_inv} +## @end deftypefn ## Author: Nir Krakauer <nkrakauer@...>   function C = circulant_make_matrix(v) n = numel(v); + n = numel(v); + C = ones(n, n); + for i = 1:n + C(:, i) = v([(endi+2):end 1:(endi+1)]); #or circshift(v, i1) + endfor C = ones(n, n);  for i = 1:n  C(:, i) = v([(endi+2):end 1:(endi+1)]); #or circshift(v, i1) endfor  endfunction %!shared v,C Modified: trunk/octaveforge/main/linearalgebra/inst/circulant_matrix_vector_product.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/circulant_matrix_vector_product.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/circulant_matrix_vector_product.m 20120419 10:01:50 UTC (rev 10294) @@ 1,48 +1,42 @@ ## Copyright (C) 2012 Nir Krakauer +## Copyright (C) 2012 Nir Krakauer <nkrakauer@...> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. ## ## You should have received a copy of the GNU General Public License ## along with this program; If not, see <http://www.gnu.org/licenses/>;. +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn{Function File}{[@var{y}] =} circulant_matrix_vector_product(@var{v}, @var{x}) +## @deftypefn{Function File} {@var{y} =} circulant_matrix_vector_product (@var{v}, @var{x}) ## ## Fast, compact calculation of the product of a circulant matrix with a vector@* ## Given @var{n}*1 vectors @var{v} and @var{x}, return the matrixvector product @var{y} = @var{C}@var{x}, where @var{C} is the @var{n}*@var{n} circulant matrix that has @var{v} as its first column ## ## Theoretically the same as @code{make_circulant_matrix(x) * v}, but does not form @var{C} explicitly; uses the discrete Fourier transform ## ## Because of roundoff, the returned @var{y} may have a small imaginary component even if @var{v} and @var{x} are real (use @code{real(y)} to remedy this) +## Because of roundoff, the returned @var{y} may have a small imaginary component even if @var{v} and @var{x} are real (use @code{real(y)} to remedy this) ## ## Reference: Gene H. Golub and Charles F. Van Loan, Matrix Computations, 3rd Ed., Section 4.7.7 ## ## @end deftypefn ## @seealso{circulant_make_matrix, circulant_eig, circulant_inv} +## @end deftypefn ## Author: Nir Krakauer <nkrakauer@...> +function y = circulant_matrix_vector_product (v, x) function y = circulant_matrix_vector_product(v, x) + xf = fft(x); + vf = fft(v); + z = vf .* xf; + y = ifft(z);  xf = fft(x); vf = fft(v); z = vf .* xf; y = ifft(z);   endfunction   %!shared v,x %! v = [1 2 3]'; x = [2 5 6]'; %!assert (circulant_matrix_vector_product(v, x), circulant_make_matrix(v)*x, eps); Modified: trunk/octaveforge/main/linearalgebra/inst/cod.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/cod.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/cod.m 20120419 10:01:50 UTC (rev 10294) @@ 1,20 +1,17 @@ ## Copyright (C) 2009 VZLU Prague, a.s., Czech Republic ## ## Author: Jaroslav Hajek <highegg@...> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; see the file COPYING. If not, see ## <http://www.gnu.org/licenses/>;. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. +## +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. +## +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn{Function File} {[@var{q}, @var{r}, @var{z}] =} cod (@var{a}) @@ 36,11 +33,13 @@ ## If a second argument of '0' is given, an economysized factorization is returned ## so that @var{r} is KbyK. ## ## NOTE: This is currently implemented by double QR factorization plus some +## @emph{NOTE}: This is currently implemented by double QR factorization plus some ## tricky manipulations, and is not as efficient as using xRZTZF from LAPACK. ## @seealso{qr} ## @end deftypefn +## Author: Jaroslav Hajek <highegg@...> + function [q, r, z, p] = cod (a, varargin) if (nargin < 1  nargin > 2  nargout > 4  ! ismatrix (a)) Modified: trunk/octaveforge/main/linearalgebra/inst/condeig.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/condeig.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/condeig.m 20120419 10:01:50 UTC (rev 10294) @@ 1,17 +1,17 @@ ## Copyright (C) 2006, 2007 Arno Onken <asnelt@...> ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## (at your option) any later version. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. ## ## You should have received a copy of the GNU General Public License ## along with this program. If not, see <http://www.gnu.org/licenses/>;. +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn {Function File} {@var{c} =} condeig (@var{a}) Modified: trunk/octaveforge/main/linearalgebra/inst/funm.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/funm.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/funm.m 20120419 10:01:50 UTC (rev 10294) @@ 1,19 +1,18 @@ ## Copyright (C) 2000, 2011 P.R. Nienhuis <prnienhuis@...> ## Copyright (C) 2001 Paul Kienzle <pkienzle@...> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, see ## <http://www.gnu.org/licenses/>;. +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn {Function File} {@var{B} =} funm (@var{A}, @var{F}) @@ 49,17 +48,6 @@ ## @seealso{thfm, expm, logm, sqrtm} ## @end deftypefn ## Author: P.R. Nienhuis <prnienhuis@...> (somewhere in 2000) ## Additions by P. Kienzle, ......... ## 20010301 Paul Kienzle ## * Many code improvements ## 20110327 Philip Nienhuis ## * Function handles ## * Texinfo header ## * Fallback to thfm for trig & hyperb funcs to avoid diagonalization ## 20110729 Philip Nienhuis ## * Layout, cleanup (tabs, alignment, ...)  function B = funm (A, name) persistent thfuncs = {"cos", "sin", "tan", "sec", "csc", "cot", ... Modified: trunk/octaveforge/main/linearalgebra/inst/lobpcg.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/lobpcg.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/lobpcg.m 20120419 10:01:50 UTC (rev 10294) @@ 1,18 +1,17 @@ ## Copyright (C) 20002011 A.V. Knyazev <Andrew.Knyazev@...> ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU Lesser General Public License as published by the Free +## Software Foundation; either version 3 of the License, or (at your option) any +## later version. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License +## for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 021101301 USA +## You should have received a copy of the GNU Lesser General Public License +## along with this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn {Function File} {[@var{blockVectorX}, @var{lambda}] =} lobpcg (@var{blockVectorX}, @var{operatorA}) @@ 251,11 +250,6 @@ ## package and is directly available, e.g., in PETSc and HYPRE. ## @end deftypefn % License: GNU LGPL ver 2.1 or above % Copyright (c) 20002011 A.V. Knyazev, Andrew.Knyazev@... % $Revision: 4.13 $ $Date: 16Oct2011 % Tested in MATLAB 6.57.13 and Octave 3.2.33.4.2.  function [blockVectorX,lambda,varargout] = lobpcg(blockVectorX,operatorA,varargin) %Begin Modified: trunk/octaveforge/main/linearalgebra/inst/ndcovlt.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/ndcovlt.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/ndcovlt.m 20120419 10:01:50 UTC (rev 10294) @@ 1,20 +1,17 @@ ## Copyright (C) 2010 VZLU Prague, a.s., Czech Republic ## ## Author: Jaroslav Hajek <highegg@...> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; see the file COPYING. If not, see ## <http://www.gnu.org/licenses/>;. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. +## +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. +## +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn{Function File} {@var{y} =} ndcovlt (@var{x}, @var{t1}, @var{t2}, @dots{}) @@ 44,6 +41,8 @@ ## ## @end deftypefn +## Author: Jaroslav Hajek <highegg@...> + function y = ndcovlt (x, varargin) nd = max (ndims (x), nargin  1); varargin = resize (varargin, 1, nd); Modified: trunk/octaveforge/main/linearalgebra/inst/rotparams.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/rotparams.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/rotparams.m 20120419 10:01:50 UTC (rev 10294) @@ 1,25 +1,24 @@ ## Copyright (C) 2002 Etienne Grossmann <etienne@...> ## ## This program is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by the ## Free Software Foundation; either version 2, or (at your option) any ## later version. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. ## ## This is distributed in the hope that it will be useful, but WITHOUT +## This program is distributed in the hope that it will be useful, but WITHOUT ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## for more details. +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, see ## <http://www.gnu.org/licenses/>;. +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn{Function File} {@var{[vstacked, astacked]} = } rotparams ( rstacked ) +## @deftypefn{Function File} {[@var{vstacked}, @var{astacked}] =} rotparams (@var{rstacked}) ## @cindex ## The function w = rotparams (r)  Inverse to rotv(). ## Using, @var{w} = rotparams(@var{r}) is such that ## rotv(w)*r' == eye(3). +## rotv(w)*r' == eye(3). ## ## If used as, [v,a]=rotparams(r) , idem, with v (1 x 3) s.t. w == a*v. ## Modified: trunk/octaveforge/main/linearalgebra/inst/rotv.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/rotv.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/rotv.m 20120419 10:01:50 UTC (rev 10294) @@ 1,18 +1,17 @@ ## Copyright (C) 2002 Etienne Grossmann <etienne@...> ## ## This program is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by the ## Free Software Foundation; either version 2, or (at your option) any ## later version. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. ## ## This is distributed in the hope that it will be useful, but WITHOUT +## This program is distributed in the hope that it will be useful, but WITHOUT ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## for more details. +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. ## ## You should have received a copy of the GNU General Public License ## along with this program; see the file COPYING. If not, see ## <http://www.gnu.org/licenses/>;. +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn{Function File} {@var{r} = } rotv ( v, ang ) Modified: trunk/octaveforge/main/linearalgebra/inst/smwsolve.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/smwsolve.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/smwsolve.m 20120419 10:01:50 UTC (rev 10294) @@ 1,20 +1,17 @@ ## Copyright (C) 2009 VZLU Prague, a.s., Czech Republic ## ## Author: Jaroslav Hajek <highegg@...> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; see the file COPYING. If not, see ## <http://www.gnu.org/licenses/>;. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. +## +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. +## +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn{Function File} {@var{x} =} smwsolve (@var{a}, @var{u}, @var{v}, @var{b}) @@ 29,6 +26,8 @@ ## @var{solver} that performs the left division operation. ## @end deftypefn +## Author: Jaroslav Hajek <highegg@...> + function x = smwsolve (a, u, v, b) if (nargin != 4) Modified: trunk/octaveforge/main/linearalgebra/inst/thfm.m ===================================================================  trunk/octaveforge/main/linearalgebra/inst/thfm.m 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/inst/thfm.m 20120419 10:01:50 UTC (rev 10294) @@ 3,19 +3,18 @@ ## Copyright (C) 2011 Philip Nienhuis <pr.nienhuis@...> ## Copyright (C) 2011 Carnë Draug <carandraug+dev@...> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the License, or ## (at your option) any later version. +## This program is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free Software +## Foundation; either version 3 of the License, or (at your option) any later +## version. ## ## This program is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. +## This program is distributed in the hope that it will be useful, but WITHOUT +## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +## details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, see ## <http://www.gnu.org/licenses/>;. +## You should have received a copy of the GNU General Public License along with +## this program; if not, see <http://www.gnu.org/licenses/>;. ## * texinfo * ## @deftypefn{Function File} {@var{y} =} thfm (@var{x}, @var{mode}) Modified: trunk/octaveforge/main/linearalgebra/src/CmplxGSVD.cc ===================================================================  trunk/octaveforge/main/linearalgebra/src/CmplxGSVD.cc 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/src/CmplxGSVD.cc 20120419 10:01:50 UTC (rev 10294) @@ 1,23 +1,19 @@ /* +// Copyright (C) 1996, 1997 John W. Eaton +// Copyright (C) 2006 Pascal Dupuis <Pascal.Dupuis@...> +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 3 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, see <http://www.gnu.org/licenses/>;. Copyright (C) 1996, 1997 John W. Eaton Copyright (C) 2006 Pascal Dupuis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.  This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.  You should have received a copy of the GNU General Public License along with this software; see the file COPYING. If not, see <http://www.gnu.org/licenses/>;.  */  #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ 290,9 +286,3 @@ } return info; }  /* ;;; Local Variables: *** ;;; mode: C++ *** ;;; End: *** */ Modified: trunk/octaveforge/main/linearalgebra/src/CmplxGSVD.h ===================================================================  trunk/octaveforge/main/linearalgebra/src/CmplxGSVD.h 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/src/CmplxGSVD.h 20120419 10:01:50 UTC (rev 10294) @@ 1,24 +1,19 @@ /* +// Copyright (C) 1996, 1997 John W. Eaton +// Copyright (C) 2006 Pascal Dupuis <Pascal.Dupuis@...> +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 3 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, see <http://www.gnu.org/licenses/>;. Copyright (C) 1996, 1997 John W. Eaton Copyright (C) 2006 Pascal Dupuis  This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.  This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.  You should have received a copy of the GNU General Public License along with this software; see the file COPYING. If not, see <http://www.gnu.org/licenses/>;.  */  #if !defined (octave_ComplexGSVD_h) #define octave_ComplexGSVD_h 1 @@ 95,9 +90,3 @@ }; #endif  /* ;;; Local Variables: *** ;;; mode: C++ *** ;;; End: *** */ Modified: trunk/octaveforge/main/linearalgebra/src/dbleGSVD.cc ===================================================================  trunk/octaveforge/main/linearalgebra/src/dbleGSVD.cc 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/src/dbleGSVD.cc 20120419 10:01:50 UTC (rev 10294) @@ 1,23 +1,19 @@ /* +// Copyright (C) 1996, 1997 John W. Eaton +// Copyright (C) 2006 Pascal Dupuis <Pascal.Dupuis@...> +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 3 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, see <http://www.gnu.org/licenses/>;. Copyright (C) 1996, 1997 John W. Eaton Copyright (C) 2006 Pascal Dupuis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.  This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.  You should have received a copy of the GNU General Public License along with this software; see the file COPYING. If not, see <http://www.gnu.org/licenses/>;.  */  #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ 296,9 +292,3 @@ return os; }  /* ;;; Local Variables: *** ;;; mode: C++ *** ;;; End: *** */ Modified: trunk/octaveforge/main/linearalgebra/src/dbleGSVD.h ===================================================================  trunk/octaveforge/main/linearalgebra/src/dbleGSVD.h 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/src/dbleGSVD.h 20120419 10:01:50 UTC (rev 10294) @@ 1,24 +1,19 @@ /* +// Copyright (C) 1996, 1997 John W. Eaton +// Copyright (C) 2006 Pascal Dupuis <Pascal.Dupuis@...> +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 3 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, see <http://www.gnu.org/licenses/>;. Copyright (C) 1996, 1997 John W. Eaton Copyright (C) 2006 Pascal Dupuis  This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.  This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.  You should have received a copy of the GNU General Public License along with this software; see the file COPYING. If not, see <http://www.gnu.org/licenses/>;.  */  #if !defined (octave_GSVD_h) #define octave_GSVD_h 1 @@ 94,9 +89,3 @@ }; #endif  /* ;;; Local Variables: *** ;;; mode: C++ *** ;;; End: *** */ Modified: trunk/octaveforge/main/linearalgebra/src/gsvd.cc ===================================================================  trunk/octaveforge/main/linearalgebra/src/gsvd.cc 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/src/gsvd.cc 20120419 10:01:50 UTC (rev 10294) @@ 1,24 +1,19 @@ /* +// Copyright (C) 1996, 1997 John W. Eaton +// Copyright (C) 2006, 2010 Pascal Dupuis <Pascal.Dupuis@...> +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 3 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, see <http://www.gnu.org/licenses/>;. Copyright (C) 1996, 1997 John W. Eaton Copyright (C) 2006, 2010 Pascal Dupuis <Pascal.Dupuis@...>  This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.  This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.  You should have received a copy of the GNU General Public License along with this software; see the file COPYING. If not, see <http://www.gnu.org/licenses/>;.  */  #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ 488,9 +483,3 @@ %!assert(norm((V'*B*X)D2*[zeros(4, 1) R]) <= 1e6) */  /* ;;; Local Variables: *** ;;; mode: C++ *** ;;; End: *** */ Modified: trunk/octaveforge/main/linearalgebra/src/pgmres.cc ===================================================================  trunk/octaveforge/main/linearalgebra/src/pgmres.cc 20120419 09:44:33 UTC (rev 10293) +++ trunk/octaveforge/main/linearalgebra/src/pgmres.cc 20120419 10:01:50 UTC (rev 10294) @@ 1,24 +1,17 @@ /*  Copyright (C) 2009 Carlo de Falco   This program is free software; you can redistribute it and/or modify  it under the terms of the GNU General Public License as published by  the Free Software Foundation; either version 2 of the License, or  (at your option) any later version.   This program is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the  GNU General Public License for more details.   You should have received a copy of the GNU General Public License  along with this program; if not, write to the Free Software  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 021101301 USA   Author: Carlo de Falco <cdf _AT_ users _DOT_ sourceforge _DOT_ net>  Created: 20090601  */ +// Copyright (C) 2009 Carlo de Falco <cdf@...> +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License as published by the Free Software +// Foundation; either version 3 of the License, or (at your option) any later +// version. +// +// This program is distributed in the hope that it will be useful, but WITHOUT +// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +// details. +// +// You should have received a copy of the GNU General Public License along with +// this program; if not, see <http://www.gnu.org/licenses/>;. #include <octave/oct.h> #include <octave/parse.h> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <jpicarbajal@us...>  20120419 09:44:44

Revision: 10293 http://octave.svn.sourceforge.net/octave/?rev=10293&view=rev Author: jpicarbajal Date: 20120419 09:44:33 +0000 (Thu, 19 Apr 2012) Log Message:  geometry: Adding solution to the belt problem in 2D. Modified Paths:  trunk/octaveforge/main/geometry/INDEX trunk/octaveforge/main/geometry/NEWS Added Paths:  trunk/octaveforge/main/geometry/inst/geom2d/beltproblem.m Modified: trunk/octaveforge/main/geometry/INDEX ===================================================================  trunk/octaveforge/main/geometry/INDEX 20120419 09:13:52 UTC (rev 10292) +++ trunk/octaveforge/main/geometry/INDEX 20120419 09:44:33 UTC (rev 10293) @@ 134,6 +134,7 @@ curveval curve2polyline 2D Others + beltproblem bisector crackPattern2 crackPattern Modified: trunk/octaveforge/main/geometry/NEWS ===================================================================  trunk/octaveforge/main/geometry/NEWS 20120419 09:13:52 UTC (rev 10292) +++ trunk/octaveforge/main/geometry/NEWS 20120419 09:44:33 UTC (rev 10293) @@ 5,6 +5,9 @@ =============================================================================== * Added functions: +  beltproblem.m : Finds the four lines tangent to two circles with given centers and + radii. This is the solution to the belt problem in 2D. +  curveval.m: Evaluates a polynomial curve defined as a 2byN matrix.  curve2polyline.m: Converts a polynomial curve into a polyline by the adaptive Added: trunk/octaveforge/main/geometry/inst/geom2d/beltproblem.m ===================================================================  trunk/octaveforge/main/geometry/inst/geom2d/beltproblem.m (rev 0) +++ trunk/octaveforge/main/geometry/inst/geom2d/beltproblem.m 20120419 09:44:33 UTC (rev 10293) @@ 0,0 +1,136 @@ +%% Copyright (c) 2012 Juan Pablo Carbajal <carbajal@...> +%% +%% This program is free software: you can redistribute it and/or modify +%% it under the terms of the GNU General Public License as published by +%% the Free Software Foundation, either version 3 of the License, or +%% any later version. +%% +%% This program is distributed in the hope that it will be useful, +%% but WITHOUT ANY WARRANTY; without even the implied warranty of +%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +%% GNU General Public License for more details. +%% +%% You should have received a copy of the GNU General Public License +%% along with this program. If not, see <http://www.gnu.org/licenses/>;. + +%% * texinfo * +%% @deftypefn {Function File} {[@var{tangent},@var{inner}] = } beltproblem (@var{c}, @var{r}) +%% Finds the four lines tangent to two circles with given centers and radii. +%% +%% The function solves the belt problem in 2D for circles with center @var{c} and +%% radii @var{r}. +%% +%% @strong{INPUT} +%% @table @var +%% @item c +%% 2by2 matrix containig coordinates of the centers of the circles; one row per circle. +%% @item r +%% 2by1 vector with the radii of the circles. +%%@end table +%% +%% @strong{OUPUT} +%% @table @var +%% @item tangent +%% 4by4 matrix with the points of tangency. Each row describes a segment(edge). +%% @item inner +%% 4by2 vector with the point of intersection of the inner tangents (crossed belts) +%% with the segment that joins the centers of the two circles. If +%% the ith edge is not an inner tangent then @code{inner(i,:)=[NaN,NaN]}. +%% @end table +%% +%% Example: +%% +%% @example +%% c = [0 0;1 3]; +%% r = [1 0.5]; +%% [T inner] = beltproblem(c,r) +%% @result{} T = +%% 0.68516 0.72839 1.34258 2.63581 +%% 0.98516 0.17161 0.50742 2.91419 +%% 0.98675 0.16225 1.49338 2.91888 +%% 0.88675 0.46225 0.55663 3.23112 +%% +%% @result{} inner = +%% 0.66667 2.00000 +%% 0.66667 2.00000 +%% NaN NaN +%% NaN NaN +%% +%% @end example +%% +%% @seealso{edges2d} +%% @end deftypefn + +function [edgeTan inner] = beltproblem(c,r) + + x0 = [c(1,1) c(1,2) c(2,1) c(2,2)]; + r0 = r([1 1 2 2]); + + middleEdge = createEdge(c(1,:),c(2,:)); + + ind0 = [1 0 1 0; 0 1 1 0; 1 1 1 0; 1 0 1 0; 0 1 1 0; 1 1 1 0;... + 1 0 0 1; 0 1 0 1; 1 1 0 1; 1 0 0 1; 0 1 0 1; 1 1 0 1;... + 1 0 1 1; 0 1 1 1; 1 1 1 1; 1 0 1 1; 0 1 1 1; 1 1 1 1;... + 1 0 1 0; 0 1 1 0; 1 1 1 0; 1 0 1 0; 0 1 1 0; 1 1 1 0;... + 1 0 0 1; 0 1 0 1; 1 1 0 1; 1 0 0 1; 0 1 0 1; 1 1 0 1;... + 1 0 1 1; 0 1 1 1; 1 1 1 1; 1 0 1 1; 0 1 1 1; 1 1 1 1]; + nInit = size(ind0,1); + ir = randperm(nInit); + edgeTan = zeros(4,4); + inner = zeros(4,2); + nSol = 0; + i=1; + + %% Solve for 2 different lines + while nSol<4 && i<nInit + ind = find(ind0(ir(i),:)~=0); + x = x0; + x(ind)=x(ind)+r0(ind); + [sol f0 nev]= fsolve(@(x)belt(x,c,r),x); + if nev~=1 + perror('fsolve',nev) + end + + for j=1:4 + notequal(j) = all(abs(edgeTan(j,:)sol) > 1e6); + end + if all(notequal) + nSol = nSol+1; + edgeTan(nSol,:) = createEdge(sol(1:2),sol(3:4)); + % Find innerTangent + inner(nSol,:) = intersectEdges(middleEdge,edgeTan(nSol,:)); + end + + i = i+1; + end + +endfunction + +function res = belt(x,c,r) + res = zeros(4,1); + + res(1,1) = (x(3:4)  c(2,1:2))*(x(3:4)  x(1:2))'; + res(2,1) = (x(1:2)  c(1,1:2))*(x(3:4)  x(1:2))'; + res(3,1) = sumsq(x(1:2)  c(1,1:2))  r(1)^2; + res(4,1) = sumsq(x(3:4)  c(2,1:2))  r(2)^2; + +end + +%!demo +%! c = [0 0;1 3]; +%! r = [1 0.5]; +%! [T inner] = beltproblem(c,r) +%! +%! figure(1) +%! clf +%! h = drawEdge(T); +%! set(h(find(~isnan(inner(:,1)))),'color','r'); +%! set(h,'linewidth',2); +%! hold on +%! drawCircle([c(1,:) r(1); c(2,:) r(2)],'linewidth',2); +%! axis tight +%! axis equal +%! +%! %  +%! % The circles with the tangents edges are plotted. The solution with +%! % crossed belts (inner tangets) is shown in red. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <carandraug@us...>  20120419 09:14:02

Revision: 10292 http://octave.svn.sourceforge.net/octave/?rev=10292&view=rev Author: carandraug Date: 20120419 09:13:52 +0000 (Thu, 19 Apr 2012) Log Message:  linearalgebra: do not autoload package Modified Paths:  trunk/octaveforge/main/linearalgebra/DESCRIPTION trunk/octaveforge/main/linearalgebra/NEWS Modified: trunk/octaveforge/main/linearalgebra/DESCRIPTION ===================================================================  trunk/octaveforge/main/linearalgebra/DESCRIPTION 20120419 09:09:29 UTC (rev 10291) +++ trunk/octaveforge/main/linearalgebra/DESCRIPTION 20120419 09:13:52 UTC (rev 10292) @@ 7,6 +7,6 @@ Description: Additional linear algebra code, including general SVD and matrix functions. Categories: LinearAlgebra Depends: octave (>= 3.2.3), general (>= 1.3.0) Autoload: yes +Autoload: no License: GPL version 3 or later Url: http://octave.sf.net Modified: trunk/octaveforge/main/linearalgebra/NEWS ===================================================================  trunk/octaveforge/main/linearalgebra/NEWS 20120419 09:09:29 UTC (rev 10291) +++ trunk/octaveforge/main/linearalgebra/NEWS 20120419 09:13:52 UTC (rev 10292) @@ 8,6 +8,8 @@ ** Package is now dependent on general (>= 1.3.0) + ** Package is no longer automatically loaded. + Summary of important uservisible changes for linearalgebra 2.1.0:  This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <carandraug@us...>  20120419 09:09:40

Revision: 10291 http://octave.svn.sourceforge.net/octave/?rev=10291&view=rev Author: carandraug Date: 20120419 09:09:29 +0000 (Thu, 19 Apr 2012) Log Message:  linearalgebra: updated NEWS file Modified Paths:  trunk/octaveforge/main/linearalgebra/NEWS Modified: trunk/octaveforge/main/linearalgebra/NEWS ===================================================================  trunk/octaveforge/main/linearalgebra/NEWS 20120419 09:00:48 UTC (rev 10290) +++ trunk/octaveforge/main/linearalgebra/NEWS 20120419 09:09:29 UTC (rev 10291) @@ 1,3 +1,13 @@ +Summary of important uservisible changes for linearalgebra 2.2.0: + + + ** The following functions are new in 2.2.0: + + circulant_eig circulant_inv circulant_make_matrix + circulant_matrix_vector_product + + ** Package is now dependent on general (>= 1.3.0) + Summary of important uservisible changes for linearalgebra 2.1.0:  This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <jpicarbajal@us...>  20120419 09:00:58

Revision: 10290 http://octave.svn.sourceforge.net/octave/?rev=10290&view=rev Author: jpicarbajal Date: 20120419 09:00:48 +0000 (Thu, 19 Apr 2012) Log Message:  optim: Numerical derivatives using the Cauchy integral. Was in worng place Modified Paths:  trunk/octaveforge/main/optim/DESCRIPTION Removed Paths:  trunk/octaveforge/main/optim/cauchy.m Modified: trunk/octaveforge/main/optim/DESCRIPTION ===================================================================  trunk/octaveforge/main/optim/DESCRIPTION 20120419 08:28:21 UTC (rev 10289) +++ trunk/octaveforge/main/optim/DESCRIPTION 20120419 09:00:48 UTC (rev 10290) @@ 1,6 +1,6 @@ Name: Optim Version: 1.0.18 Date: 20111130 +Version: 1.1.0 +Date: 2012XXXX Author: various authors Maintainer: OctaveForge community <octavedev@...> Title: Optimization. Deleted: trunk/octaveforge/main/optim/cauchy.m ===================================================================  trunk/octaveforge/main/optim/cauchy.m 20120419 08:28:21 UTC (rev 10289) +++ trunk/octaveforge/main/optim/cauchy.m 20120419 09:00:48 UTC (rev 10290) @@ 1,123 +0,0 @@ ## Copyright (C) 2011 Fernando Damian Nieuwveldt <fdnieuwveldt@...> ## 2012 Adapted by Juan Pablo Carbajal <carbajal@...> ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License ## as published by the Free Software Foundation; either version 3 ## of the License, or (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details.  ## * texinfo * ## @deftypefn {Function File} {} cauchy (@var{N}, @var{r}, @var{x}, @var{f} ) ## Return the Taylor coefficients and numerical differentiation of a function ## @var{f} for the first @var{N1} coefficients or derivatives using the fft. ## @var{N} is the number of points to evaluate, ## @var{r} is the radius of convergence, needs to be chosen less then the smallest singularity, ## @var{x} is point to evaluate the Taylor expansion or differentiation. For example, ## ## If @var{x} is a scalar, the function @var{f} is evaluated in a row vector ## of length @var{N}. If @var{x} is a column vector, @var{f} is evaluated in a ## matrix of length(x)byN elements and must return a matrix of the same size. ## ## @example ## @group ## d = cauchy(16,1.5,0,@(x) exp(x)); ## @result{} d(2) = 1.0000 # first (21) derivative of function f (index starts from zero) ## @end group ## @end example ## @end deftypefn  function deriv = cauchy(N, r, x, f)   if nargin != 4  print_usage ();  end   [nx m] = size (x);  if m > 1  error('cauchy:InvalidArgument', 'The 3rd argument must be a column vector');  end   n = 0:N1;  th = 2*pi*n/N;   f_p = f (bsxfun (@plus, x, r * exp (i * th) ) );   evalfft = real(fft (f_p, [], 2));   deriv = bsxfun (@times, evalfft, 1./(N*(r.^n)).* factorial(n)) ;  endfunction  %!demo %! # Cauchy integral formula: Application to Hermite polynomials %! # Author: Fernando Damian Nieuwveldt %! # Edited by: Juan Pablo Carbajal %! %! function g = hermite(order,x) %! %! ## N should be bigger than order+1 %! N = 32; %! r = 0.5; %! Hnx = @(t) exp ( bsxfun (@minus, kron(t(:).', x(:)) , t(:).'.^2/2) ); %! Hnxfft = cauchy(N, r, 0, Hnx); %! g = Hnxfft(:, order+1); %! %! endfunction %! %! t = linspace(1,1,30); %! he2 = hermite(2,t); %! he2_ = t.^21; %! %! plot(t,he2,'bo;Contour integral representation;', t,he2_,'r;Exact;'); %! grid %! clear all %! %! %  %! % The plots compares the approximation of the Hermite polynomial using the %! % Cauchy integral (circles) and the corresposind polynomial H_2(x) = x.^2  1. %! % See http://en.wikipedia.org/wiki/Hermite_polynomials#Contour_integral_representation  %!demo %! # Cauchy integral formula: Application to Hermite polynomials %! # Author: Fernando Damian Nieuwveldt %! # Edited by: Juan Pablo Carbajal %! %! xx = sort (rand (100,1)); %! yy = sin (3*2*pi*xx); %! %! # Exact first derivative derivative %! diffy = 6*pi*cos (3*2*pi*xx); %! %! np = [10 15 30 100]; %! %! for i =1:4 %! idx = sort(randperm (100,np(i))); %! x = xx(idx); %! y = yy(idx); %! %! p = spline (x,y); %! yval = ppval (ppder(p),x); %! # Use the cauchy formula for computing the derivatives %! deriv = cauchy (fix (np(i)/4), .1, x, @(x) sin (3*2*pi*x)); %! %! subplot(2,2,i) %! h = plot(xx,diffy,'b;Exact;',... %! x,yval,'or;ppder solution;',... %! x,deriv(:,2),'og;Cauchy formula;'); %! set(h(1),'linewidth',2); %! set(h(2:3),'markersize',3); %! %! legend('Location','Northoutside','Orientation','horizontal'); %! %! if i!=1 %! legend('hide','Orientation','horizontal') %! end %! end %! %! %  %! % The plots compares the derivatives calculated with Cauchy and with ppder. %! % Each subplot shows the results with increasing number of samples. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 
From: <jpicarbajal@us...>  20120419 08:28:32

Revision: 10289 http://octave.svn.sourceforge.net/octave/?rev=10289&view=rev Author: jpicarbajal Date: 20120419 08:28:21 +0000 (Thu, 19 Apr 2012) Log Message:  optim: Numerical derivatives using the Cauchy integral. Was in worng place Added Paths:  trunk/octaveforge/main/optim/inst/cauchy.m Copied: trunk/octaveforge/main/optim/inst/cauchy.m (from rev 10288, trunk/octaveforge/main/optim/cauchy.m) ===================================================================  trunk/octaveforge/main/optim/inst/cauchy.m (rev 0) +++ trunk/octaveforge/main/optim/inst/cauchy.m 20120419 08:28:21 UTC (rev 10289) @@ 0,0 +1,125 @@ +## Copyright (C) 2011 Fernando Damian Nieuwveldt <fdnieuwveldt@...> +## 2012 Adapted by Juan Pablo Carbajal <carbajal@...> +## +## This program is free software; you can redistribute it and/or +## modify it under the terms of the GNU General Public License +## as published by the Free Software Foundation; either version 3 +## of the License, or (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. + +## * texinfo * +## @deftypefn {Function File} {} cauchy (@var{N}, @var{r}, @var{x}, @var{f} ) +## Return the Taylor coefficients and numerical differentiation of a function +## @var{f} for the first @var{N1} coefficients or derivatives using the fft. +## @var{N} is the number of points to evaluate, +## @var{r} is the radius of convergence, needs to be chosen less then the smallest singularity, +## @var{x} is point to evaluate the Taylor expansion or differentiation. For example, +## +## If @var{x} is a scalar, the function @var{f} is evaluated in a row vector +## of length @var{N}. If @var{x} is a column vector, @var{f} is evaluated in a +## matrix of length(x)byN elements and must return a matrix of the same size. +## +## @example +## @group +## d = cauchy(16,1.5,0,@(x) exp(x)); +## @result{} d(2) = 1.0000 # first (21) derivative of function f (index starts from zero) +## @end group +## @end example +## @end deftypefn + +function deriv = cauchy(N, r, x, f) + + if nargin != 4 + print_usage (); + end + + [nx m] = size (x); + if m > 1 + error('cauchy:InvalidArgument', 'The 3rd argument must be a column vector'); + end + + n = 0:N1; + th = 2*pi*n/N; + + f_p = f (bsxfun (@plus, x, r * exp (i * th) ) ); + + evalfft = real(fft (f_p, [], 2)); + + deriv = bsxfun (@times, evalfft, 1./(N*(r.^n)).* factorial(n)) ; + +endfunction + +function g = hermite(order,x) + ## N should be bigger than order+1 + N = 32; + r = 0.5; + Hnx = @(t) exp ( bsxfun (@minus, kron(t(:).', x(:)) , t(:).'.^2/2) ); + Hnxfft = cauchy(N, r, 0, Hnx); + g = Hnxfft(:, order+1); +endfunction + +%!demo +%! # Cauchy integral formula: Application to Hermite polynomials +%! # Author: Fernando Damian Nieuwveldt +%! # Edited by: Juan Pablo Carbajal +%! +%! Hnx = @(t,x) exp ( bsxfun (@minus, kron(t(:).', x(:)) , t(:).'.^2/2) ); +%! hermite = @(order,x) cauchy(32, 0.5, 0, @(t)Hnx(t,x))(:, order+1); +%! +%! t = linspace(1,1,30); +%! he2 = hermite(2,t); +%! he2_ = t.^21; +%! +%! figure(1) +%! clf +%! plot(t,he2,'bo;Contour integral representation;', t,he2_,'r;Exact;'); +%! grid +%! clear all +%! +%! %  +%! % The plots compares the approximation of the Hermite polynomial using the +%! % Cauchy integral (circles) and the corresposind polynomial H_2(x) = x.^2  1. +%! % See http://en.wikipedia.org/wiki/Hermite_polynomials#Contour_integral_representation + +%!demo +%! # Cauchy integral formula: Application to Hermite polynomials +%! # Author: Fernando Damian Nieuwveldt +%! # Edited by: Juan Pablo Carbajal +%! +%! xx = sort (rand (100,1)); +%! yy = sin (3*2*pi*xx); +%! +%! # Exact first derivative derivative +%! diffy = 6*pi*cos (3*2*pi*xx); +%! +%! np = [10 15 30 100]; +%! +%! for i =1:4 +%! idx = sort(randperm (100,np(i))); +%! x = xx(idx); +%! y = yy(idx); +%! +%! p = spline (x,y); +%! yval = ppval (ppder(p),x); +%! # Use the cauchy formula for computing the derivatives +%! deriv = cauchy (fix (np(i)/4), .1, x, @(x) sin (3*2*pi*x)); +%! +%! subplot(2,2,i) +%! h = plot(xx,diffy,'b;Exact;',... +%! x,yval,'or;ppder solution;',... +%! x,deriv(:,2),'og;Cauchy formula;'); +%! set(h(1),'linewidth',2); +%! set(h(2:3),'markersize',3); +%! +%! legend(h, 'Location','Northoutside','Orientation','horizontal'); +%! if i!=1 +%! legend('hide'); +%! end +%! end +%! +%! %  +%! % The plots compares the derivatives calculated with Cauchy and with ppder. +%! % Each subplot shows the results with increasing number of samples. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. 