File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -340,8 +340,8 @@ jStat.extend({
340
340
arg = isArray ( arg [ 0 ] ) ? arg : [ arg ] ;
341
341
342
342
// convert column to row vector
343
- var left = ( arr [ 0 ] . length === 1 && arr [ length ] !== 1 ) ? jStat . transpose ( arr ) : arr ,
344
- right = ( arg [ 0 ] . length === 1 && arg [ length ] !== 1 ) ? jStat . transpose ( arg ) : arg ,
343
+ var left = ( arr [ 0 ] . length === 1 && arr . length !== 1 ) ? jStat . transpose ( arr ) : arr ,
344
+ right = ( arg [ 0 ] . length === 1 && arg . length !== 1 ) ? jStat . transpose ( arg ) : arg ,
345
345
res = [ ] ,
346
346
row = 0 ,
347
347
nrow = left . length ,
@@ -377,7 +377,7 @@ jStat.extend({
377
377
// computes the norm of the vector
378
378
norm : function ( arr ) {
379
379
arr = isArray ( arr [ 0 ] ) ? arr : [ arr ] ;
380
- if ( arr . length > 1 && arr [ 0 ] [ length ] > 1 ) {
380
+ if ( arr . length > 1 && arr [ 0 ] . length > 1 ) {
381
381
// matrix norm
382
382
} else {
383
383
// vector norm
@@ -396,7 +396,7 @@ jStat.extend({
396
396
var issymmetric = true ,
397
397
row = 0 ,
398
398
size = arr . length , col ;
399
- if ( arr . length !== arr [ 0 ] [ length ] ) return false ;
399
+ if ( arr . length !== arr [ 0 ] . length ) return false ;
400
400
for ( ; row < size ; row ++ ) {
401
401
for ( col = 0 ; col < size ; col ++ ) {
402
402
if ( arr [ col ] [ row ] !== arr [ row ] [ col ] ) return false ;
You can’t perform that action at this time.
0 commit comments