Editing User:KaKiLa

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 66: Line 66:
 
== extend sub2ind and ind2sub ==
 
== extend sub2ind and ind2sub ==
 
We are extending sub2ind and ind2sub to work with triangular matrices. Currently private functions of {{Forge|mechanics}}.
 
We are extending sub2ind and ind2sub to work with triangular matrices. Currently private functions of {{Forge|mechanics}}.
A string argument triggers the behavior. The string argument can be "triu" or "tril". After this str argument we accept an extra scalar value indicating that the triangular matrix is off diagonal (as in tril and triu).
+
A string argument triggers the behavior. The string argument can be "triu" or "tril". After this str argument we accet an extra scalar value indicating that the triangular matrix is off diagonal (as in tril and trup).
So, the first modification to the C++ code will be
+
So, the forst modification to the C++ code will be
 
# Check if any of the argument is a str.
 
# Check if any of the argument is a str.
 
# Check what kind of triangular matrix (up or low).  
 
# Check what kind of triangular matrix (up or low).  
# If the argument after the str argument is a scalar, it indicates off diagonal triangular matrix (we do not have algo for that yet, though).
+
# If the argument after the str argument is a scalar, it indicates off diagonal triangular matrix (we do not have algo for that yet, though).  
  
 
== updating pkg.m ==
 
== updating pkg.m ==

Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: