Changes

Jump to navigation Jump to search
No change in size ,  16:54, 18 January 2012
m
Line 8: Line 8:  
=== 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 accet an extra scalar value indicating that the triangular matrix is off diagonal (as in tril and trup).
+
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).
So, the forst modification to the C++ code will be
+
So, the first 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).
    
== Octave - Forge ==
 
== Octave - Forge ==
657

edits

Navigation menu