9 #include "sll_memory.h"
10 #include "sll_working_precision.h"
26 sll_real64,
dimension(:, :),
intent(in) :: v, w
27 sll_real64,
dimension(2, size(v, 2)) :: cross
28 sll_real64,
dimension(size(v, 2)) :: determinante
30 determinante(:) = v(1, :)*w(2, :) - v(2, :)*w(1, :)
31 cross(1, :) = v(1, :)*determinante
32 cross(2, :) = v(2, :)*determinante
38 sll_real64,
dimension(:, :),
intent(in) :: v, w
39 sll_real64,
dimension(3, size(v, 2)) :: cross
41 cross(1, :) = v(2, :)*w(3, :) - v(3, :)*w(2, :)
42 cross(2, :) = v(3, :)*w(1, :) - v(1, :)*w(3, :)
43 cross(3, :) = v(1, :)*w(2, :) - v(2, :)*w(1, :)
pure real(kind=f64) function, dimension(2, size(v, 2)), public sll_f_cross_product_2d(v, w)
pure real(kind=f64) function, dimension(3, size(v, 2)), public sll_f_cross_product_3d(v, w)