Expanded sqr() to take lists and removed vsqr()

This commit is contained in:
Adrian Mariano
2020-03-21 09:19:49 -04:00
parent 79358ddf6f
commit 72aae0e42c
2 changed files with 7 additions and 11 deletions

View File

@@ -95,13 +95,6 @@ function vdiv(v1, v2) = [for (i = [0:1:len(v1)-1]) v1[i]/v2[i]];
function vabs(v) = [for (x=v) abs(x)];
// Function: vsqr()
// Usage:
// x = vsqr(v);
// Description:
// Returns a vector where each value in the original given vector is squared.
function vsqr(v) = [for(i=v) i*i];
// Function: unit()
// Description: