Advertisement
Guest User

Untitled

a guest
Feb 16th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. (let* ((number-of-lanes (the fixnum (number-of-lanes matrix)))
  2. (lane-width (the fixnum (lane-width matrix)))
  3. (q (the fixnum (floor j lane-width))) ;; Lane index within matrix row
  4. (r (- j (the fixnum (* q lane-width)))) ;; Element index within lane
  5. (lane-index (+ (the fixnum (* i number-of-lanes)) q)) ;; Lane index within matrix
  6. (lane (aref (the simple-array (elements matrix)) lane-index)))
  7.  
  8. .....
  9.  
  10. ; compiling (DEFMETHOD (SETF MREF) ...)
  11. ; file: /tmp/slime8ydM1g
  12. ; in: DEFMETHOD (SETF MREF) (SINGLE-FLOAT R-MATRIX-SFP T T)
  13. ; (AREF (THE SIMPLE-ARRAY (LINEAR-ALGEBRA:ELEMENTS LINEAR-ALGEBRA::MATRIX))
  14. ; LINEAR-ALGEBRA::LANE-INDEX)
  15. ; ==>
  16. ; (SB-KERNEL:HAIRY-DATA-VECTOR-REF ARRAY SB-INT:INDEX)
  17. ;
  18. ; note: unable to
  19. ; optimize
  20. ; due to type uncertainty:
  21. ; The first argument is a (SIMPLE-ARRAY * (*)), not a SIMPLE-STRING.
  22. ;
  23. ; note: unable to
  24. ; avoid runtime dispatch on array element type
  25. ; because:
  26. ; Upgraded element type of array is not known at compile time.
  27. ;
  28. ; compilation unit finished
  29. ; printed 2 notes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement