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

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

Class Scalar

Multiply every item in the operand matrix by a scalar value

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

Multiply each member of the matrix by single scalar value and return result Boolean values are converted to 0 (false) and 1 (true). Use the logical computations if required. String values must conform to the requirements of a rational string number i.e. '2/3', else an exception will be thrown

Multiply each member of the matrix by single scalar value and return result Boolean values are converted to 0 (false) and 1 (true). Use the logical computations if required. String values must conform to the requirements of a rational string number i.e. '2/3', else an exception will be thrown

Parameters

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

Returns

Chippyash\Math\Matrix\Computation\Mul\Matrix

Throws

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