From df3b25f20889e42a9bd16f00af296a721518a433 Mon Sep 17 00:00:00 2001 From: Atharva Khare Date: Sun, 26 May 2019 18:37:35 +0530 Subject: [PATCH] Removed PMVector sum for speedup --- src/Math-Core/PMVector.class.st | 11 +---------- src/Math-Core/PMWeightedPoint.class.st | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/Math-Core/PMVector.class.st b/src/Math-Core/PMVector.class.st index 9a015f0ee..9185fd96e 100644 --- a/src/Math-Core/PMVector.class.st +++ b/src/Math-Core/PMVector.class.st @@ -20,7 +20,7 @@ Class { #name : #PMVector, #superclass : #Array, #type : #variable, - #category : #'Math-Core' + #category : 'Math-Core' } { #category : #'instance creation' } @@ -308,15 +308,6 @@ PMVector >> sqrt [ 1 to: self size do: [ :n | self at: n put: (self at: n) sqrt ] ] -{ #category : #transformation } -PMVector >> sum [ - "Compute the sum of a vector." - |a| - a := 0. - 1 to: self size do: [ :n | a := a + self at: n]. - ^a. -] - { #category : #operation } PMVector >> tan [ "Apply tan function to every element of a vector" diff --git a/src/Math-Core/PMWeightedPoint.class.st b/src/Math-Core/PMWeightedPoint.class.st index 68a6f6146..a7beea989 100644 --- a/src/Math-Core/PMWeightedPoint.class.st +++ b/src/Math-Core/PMWeightedPoint.class.st @@ -12,7 +12,7 @@ Class { 'weight', 'error' ], - #category : #'Math-Core' + #category : 'Math-Core' } { #category : #creation }