Skip to content
  • Liam M. Healy's avatar
    PQ grid specification and creation with make-grid · 56d58d21
    Liam M. Healy authored
    The grid type of a pq grid, as given by grid:gridp, will be
    (physical-quantity <magnitude-grid-type>).  This is accepted by
    make-specification and by make-grid.  For make-grid, this is
    translated into a call to make-pq.
    
    This is tested with an example: 
    (grid:make-grid '(physical-quantity (grid:foreign-array 3) double-float))
    #<Physical quantity mag (2.024e-320 6.953e-310 1.036e-317), units #(METER METER METER)>
    (grid:specification @)
    (PHYSICAL-QUANTITY (GRID:FOREIGN-ARRAY 3) DOUBLE-FLOAT)
    56d58d21