I have two functions: one is scalar multiplication for a vector and other - vector-matrix multiplication:
pure T[] mul(S, T)(S s, T[] a)
and
pure T[] mul(T)(T[] a, T[][] B)
Of course this leads to a conflict, as S
can be a vector too, so that first template covers the second. How do I tell compiler, I want only scalar type to be S
?