1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42:
<?php
/*
* Math-Matrix library
*
* @author Ashley Kitson <akitson@zf4.biz>
* @copyright Ashley Kitson, UK, 2014
* @licence GPL V3 or later : http://www.gnu.org/licenses/gpl.html
* @link http://en.wikipedia.org/wiki/Matrix_(mathematics)
*/
namespace Chippyash\Math\Matrix\Interfaces;
use Chippyash\Math\Matrix\NumericMatrix;
use Chippyash\Matrix\Interfaces\InvokableInterface;
/**
* Computation interface
* Computations must never modify the operands to the computation
* and always return a Matrix as a result.
*
* ComputationException based exceptions must be thrown if computation fails
* for any reason
*
* @codeCoverageIgnore
*/
interface ComputatationInterface extends InvokableInterface
{
/**
* Carry out a computation and return the result
*
* @param NumericMatrix $mA First matrix to act on - required
* @param mixed $extra NumericMatrix or other parameter required by the computation
*
* @return NumericMatrix
*
* @throws Chippyash/Matrix/Exceptions/ComputationException
* @codeCoverageIgnore
*/
public function compute(NumericMatrix $mA, $extra = null);
}