Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
MathPHP
LinearAlgebra
Vector
scalarMultiply
MathPHP\LinearAlgebra\Vector::scalarMultiply PHP Method
Vector Class Documentation
Show file
Open project: markrogoyski/math-php
scalarMultiply()
public
method
..]
public
scalarMultiply
(
number
$k
) :
Vector
$k
number
Scale factor
return
Vector
public function scalarMultiply($k) { return new Vector(Map\Single::multiply($this->A, $k)); }
Vector
__construct
__toString
add
asColumnMatrix
asRowMatrix
count
crossProduct
directProduct
dotProduct
get
getN
getVector
innerProduct
jsonSerialize
l1Norm
l2Norm
length
maxNorm
normalize
offsetExists
offsetGet
offsetSet
offsetUnset
outerProduct
pNorm
perp
perpDotProduct
perpendicular
projection
scalarDivide
scalarMultiply
subtract
sum