Overview

Namespaces

  • Chippyash
    • Math
      • Matrix
        • Attribute
        • Computation
          • Add
          • Div
          • Mul
          • Sub
        • Decomposition
        • Derivative
          • Strategy
            • Determinant
        • Exceptions
        • Formatter
          • DirectedGraph
        • Interfaces
        • Special
        • Traits
        • Transformation
          • Strategy
            • Invert

Classes

  • Matrix
  • Scalar
  • Overview
  • Namespace
  • Class
  • Tree

Class Scalar

Subtract a scalar from every item in the operand matrix

Chippyash\Math\Matrix\Computation\AbstractComputation implements Chippyash\Math\Matrix\Interfaces\ComputatationInterface uses Chippyash\Matrix\Traits\Debug (not available)
Extended by Chippyash\Math\Matrix\Computation\Sub\Scalar uses Chippyash\Math\Matrix\Traits\CreateCorrectMatrixType, Chippyash\Math\Matrix\Traits\CreateCorrectScalarType
Namespace: Chippyash\Math\Matrix\Computation\Sub
Link: http://www.php.net//manual/en/function.is-scalar.php
Located at Computation/Sub/Scalar.php
Methods summary
public Chippyash\Math\Matrix\Computation\Sub\Matrix
# compute( Chippyash\Math\Matrix\NumericMatrix $mA, scalar $extra = null )

Subtract a single scalar value from each member of the matrix and return result Boolean values are converted to 0 (false) and 1 (true). Use the logical computations if required. String values do a string replace for the scalar, replacing occurences of if with ''

Subtract a single scalar value from each member of the matrix and return result Boolean values are converted to 0 (false) and 1 (true). Use the logical computations if required. String values do a string replace for the scalar, replacing occurences of if with ''

Parameters

$mA
First matrix to act on - required
$extra
value to subtract

Returns

Chippyash\Math\Matrix\Computation\Sub\Matrix

Throws

Chippyash/Matrix/Exceptions/ComputationException
Methods inherited from Chippyash\Math\Matrix\Computation\AbstractComputation
__invoke()
Chippyash Math Matrix API documentation generated by ApiGen