Skip to content

Commit 7f83169

Browse files
committed
Remove section dividers.
1 parent e2e5ad1 commit 7f83169

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/Vector.php

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ public static function fromMatrix(Matrix $matrix, int $row = 0): self
2424
return new self($matrix->toArray()[$row]);
2525
}
2626

27-
/**************************************************************************
28-
* BASIC VECTOR GETTERS
29-
* - getVector
30-
* - getSize
31-
**************************************************************************/
32-
3327
/**
3428
* @return array
3529
*/
@@ -47,13 +41,6 @@ public function getSize(): int
4741
return count($this->internal[0]);
4842
}
4943

50-
/**************************************************************************
51-
* VECTOR OPERATIONS - Return a number
52-
* - sum
53-
* - length (magnitude)
54-
* - dotProduct (innerProduct)
55-
**************************************************************************/
56-
5744
/**
5845
* Sum of all elements
5946
*
@@ -111,14 +98,6 @@ public function innerProduct(Vector $other)
11198
return $this->dotProduct($other);
11299
}
113100

114-
/**************************************************************************
115-
* VECTOR OPERATIONS - Return a Vector or Matrix
116-
* - outerProduct
117-
* - crossProduct
118-
* - normalize
119-
* - projection
120-
**************************************************************************/
121-
122101
/**
123102
* Outer product (A⨂B)
124103
* https://en.wikipedia.org/wiki/Outer_product
@@ -209,13 +188,6 @@ public function projection(self $other): self
209188
return self::fromMatrix($other->multiplyScalar($this->dotProduct($other) / ($other->l2norm() ** 2)));
210189
}
211190

212-
/**************************************************************************
213-
* VECTOR NORMS
214-
* - l1Norm
215-
* - l2Norm
216-
* - maxNorm
217-
**************************************************************************/
218-
219191
/**
220192
* l₁-norm (|x|₁)
221193
* Also known as Taxicab norm or Manhattan norm

0 commit comments

Comments
 (0)