Permalink
Browse files

Remove duplicate object property "outer"

Don't believe this was causing issues in actual browsers, but certain
versions of phantomJS and karma didn't like it.

PR-URL: #220
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information...
Alex Schmelkin authored and trevnorris committed Sep 27, 2017
1 parent c306885 commit 64ccbe557b6cbf4d5adef46d4358a8caad29a515
Showing with 0 additions and 11 deletions.
  1. +0 −11 src/linearalgebra.js
View
@@ -70,17 +70,6 @@ jStat.extend({
return jStat.map(arr, function(value) { return value * arg; });
},
outer:function(A,B){
/* outer([1,2,3],[4,5,6])
===
[[1],[2],[3]] times [[4,5,6]]
->
[[4,5,6],[8,10,12],[12,15,18]]
*/
return jStat.multiply(A.map(function(t){return [t]}),[B]);
},
// outer([1,2,3],[4,5,6])
// ===
// [[1],[2],[3]] times [[4,5,6]]

0 comments on commit 64ccbe5

Please sign in to comment.