initialize scalarprod
parse scalar
minimum product