Changeset 37376 in project


Ignore:
Timestamp:
03/15/19 11:34:30 (2 months ago)
Author:
kooda
Message:

Document gl-math for CHICKEN 5

File:
1 copied

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/gl-math

    r37369 r37376  
    55
    66=== Requirements
     7* srfi-1
    78* matchable
    89
     
    3334<procedure> (m* A B [RESULT])</procedure>
    3435
    35 Multiply matrix {{A}} by matrix {{B}}. If the matrix {{RESULT}} is given, it will be modified to contain the results of the multiplication. If {{RESULT}} is {{#t}}, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in non-garbage-collected memory (the memory will still be freed when there are no more references to the matrix). If {{RESULT}} is not provided, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in normal garbage collected memory.
     36Multiply matrix {{A}} with matrix {{B}}. If the matrix {{RESULT}} is given, it will be modified to contain the results of the multiplication. If {{RESULT}} is {{#t}}, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in non-garbage-collected memory (the memory will still be freed when there are no more references to the matrix). If {{RESULT}} is not provided, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in normal garbage collected memory.
    3637
    3738<procedure> (m*s A S [RESULT])</procedure>
     
    4142<procedure> (m+ A B [RESULT])</procedure>
    4243
    43 Add matrix {{A}} with matrix {{B}}. If the matrix {{RESULT}} is given, it will be modified to contain the results of the multiplication. If {{RESULT}} is {{#t}}, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in non-garbage-collected memory (the memory will still be freed when there are no more references to the matrix). If {{RESULT}} is not provided, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in normal garbage collected memory.
     44Add matrix {{A}} by matrix {{B}}. If the matrix {{RESULT}} is given, it will be modified to contain the results of the multiplication. If {{RESULT}} is {{#t}}, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in non-garbage-collected memory (the memory will still be freed when there are no more references to the matrix). If {{RESULT}} is not provided, {{A}} and {{B}} must be f32vectors and the returned value will be an f32vector located in normal garbage collected memory.
    4445
    4546<procedure> (m- A B [RESULT])</procedure>
     
    337338=== Example
    338339<enscript highlight="scheme">   
    339 (import chicken scheme)
    340 (use gl-math)
     340(import gl-math)
    341341
    342342(define projection-matrix
     
    356356
    357357=== Version history
     358
     359==== Version 0.9.0
     36015 March 2019
     361
     362* Maintenance given to [[/users/kooda|Kooda]]
     363* Port to CHICKEN 5
     364
    358365
    359366==== Version 0.8.0
     
    429436
    430437=== Source repository
    431 Source available on [[https://github.com/AlexCharlton/gl-math|GitHub]].
    432 
    433 Bug reports and patches welcome! Bugs can be reported via GitHub or to alex.n.charlton at gmail.
    434 
    435 
    436 === Author
     438Source available [[https://www.upyum.com/cgit.cgi/gl-math/|here]].
     439
     440Bug reports and patches welcome! Bugs can be reported to kooda@upyum.com
     441
     442
     443=== Authors
    437444Alex Charlton
     445
     446Adrien (Kooda) Ramos
    438447
    439448
    440449=== Licence
    441450BSD
     451
Note: See TracChangeset for help on using the changeset viewer.