/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
 * @                                                                             @ *
 *           #          # #                                 #    (c) 2017 CAB      *
 *          # #      # #                                  #  #                     *
 *         #  #    #  #           # #     # #           #     #              # #   *
 *        #   #  #   #             #       #          #        #              #    *
 *       #     #    #   # # #    # # #    #         #           #   # # #   # # #  *
 *      #          #         #   #       # # #     # # # # # # #  #    #    #      *
 *     #          #   # # # #   #       #      #  #           #  #         #       *
 *  # #          #   #     #   #    #  #      #  #           #  #         #    #   *
 *   #          #     # # # #   # #   #      #  # #         #    # # #     # #     *
 * @                                                                             @ *
\* *  http://github.com/alexcab  * * * * * * * * * * * * * * * * * * * * * * * * * */


package mathact.tools.math.timed

import mathact.core.bricks.blocks.BlockContext
import mathact.tools.math.TimedMath

/** Multiplier
  * Created by CAB on 03.12.2016.
  */

class Multiplier(implicit context: BlockContext)
extends TimedMath(context, "*", "mathact/tools/math/timed/multiplier.png"){
  protected def eval(timedInput: Vector[Double], singleInput: Vector[Double]): Double =
    timedInput.product * singleInput.product}