30#if defined(__KERNEL_SSE__)
43 result.x = multiply_row(a.
x,
b);
44 result.y = multiply_row(a.
y,
b);
45 result.z = multiply_row(a.
z,
b);
73 const float inv_a = 1.0f / a;
157 const float aa = a * a;
158 const float ab = a *
b;
159 const float ac = a * c;
160 const float ad = a * d;
161 const float bb =
b *
b;
162 const float bc =
b * c;
163 const float bd =
b * d;
164 const float cc = c * c;
165 const float cd = c * d;
166 const float dd = d * d;
169 r.
x =
make_float3(aa + bb - cc - dd, 2.0f * (bc - ad), 2.0f * (ac + bd));
170 r.
y =
make_float3(2.0f * (ad + bc), aa - bb + cc - dd, 2.0f * (cd - ab));
171 r.
z =
make_float3(2.0f * (bd - ac), 2.0f * (ab + cd), aa - bb - cc + dd);
181 const float normalizer = 1.0f / (q.
w * q.
w + q.
x * q.
x + q.
y * q.
y + q.
z * q.
z);
#define ccl_device_inline
#define CCL_NAMESPACE_END
b[1] b &&[1] b &&[1] b &&[1] b &&[1] b[3] b &&[1] b[3] float determinant(MatBase< C, R >) RET
float dot(VecOp< float, D >, VecOp< float, D >) RET
void quaternion_to_rotation(float w, float x, float y, float z, float4 &rotation)
float2x2 adjoint(float2x2 mat)
ccl_device_inline Extrema< T > operator*(const Extrema< T > a, const T b)
ccl_device_inline dual< T > operator/(const dual< T > a, T b)
CCL_NAMESPACE_BEGIN ccl_device_inline float madd(const float a, const float b, const float c)
ccl_device_inline float3x3 transposed(const float3x3 m)
ccl_device_inline float3x3 inverted(const float3x3 m)
ccl_device_inline float3x3 quaternion_to_scaled_rotation(const Quaternion q)
ccl_device_inline float3x3 float3x3_scale(const float3 s)
ccl_device_inline float3x3 zero_float3x3()
ccl_device_inline float3x3 make_float3x3(const float3 x, const float3 y, const float3 z)