User:KaKiLa: Difference between revisions

From Octave
Jump to navigation Jump to search
No edit summary
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 ==

Revision as of 16:54, 18 January 2012

Personal Data

Juan Pablo Carbajal

TODO list

extend sub2ind and ind2sub

We are extending sub2ind and ind2sub to work with triangular matrices. Currently private functions of 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). So, the first modification to the C++ code will be

  1. Check if any of the argument is a str.
  2. Check what kind of triangular matrix (up or low).
  3. 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

  • quaternion_oo mpower.m
  • Invite biomechanicist to put their code in biomechanics package.


Robotics Toolbox

Matgeom

Finish the port:

  • polygons2d
  • meshes
  • polygons3d

Mechanics

  • clean up structure.
  • DMOC code generation.
  • Improve verlet integrator. A odepkg compatible version?