Python linear algebra module -- requesting comments on interface

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • C. Barnes

    #1

    Python linear algebra module -- requesting comments on interface


    Szabolcs Nagy wrote:[color=blue]
    >nice interface, but with 3d apps i prefer cgkit's[/color]
    approach, which has[color=blue]
    >vec3, vec4, mat3, mat4 and quat types with lots of[/color]
    useful functions for[color=blue]
    >3d graphics (like mat4.looakAt(po s, target, up) or[/color]
    mat3.toEulerXYZ ())
    [color=blue]
    >there are other libs with similar types and[/color]
    functions:[color=blue]
    >cgkit (http://cgkit.sourceforge.net/)[/color]

    Thanks for the link! I had planned on changing around
    the constructors: using Matrix.zero(),
    Matrix.identity (), and Matrix.random() static methods
    (instead of module functions), and adding
    Matrix.rotate() , Matrix.translat e(), Matrix.scale()
    for homogenous 4-matrices and with an optional arg
    that would make a 3-matrix in special cases. Then I
    thought I'd add affine_transfor m() and
    homogeneous_tra nsform() module methods, which could
    transform several vectors at once if they are stored
    in a matrix.

    But I looked over cgkit's interface, and it is EXACTLY
    what I wanted. I guess my scientific programming
    background made me think up too general of an
    interface. So I've cancelled this linear algebra
    library.

    If anyone needs the matrix decompositions, and you
    can't find them elsewhere, you can always make your
    own library. I was planning on using the public
    domain code from:



    ftp://math.nist.gov/pub/Jampack/Jamp...utJampack.html

    - Connelly Barnes




    _______________ _______________ ____
    Yahoo! Mail - PC Magazine Editors' Choice 2005
    Yahoo Mail: Your smarter, faster, free email solution. Organize your inbox, protect your privacy, and tackle tasks efficiently with AI-powered features and robust security tools.

Working...