File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,15 @@ declare module 'ml-matrix' {
382
382
383
383
export function determinant ( matrix : MaybeMatrix ) : number ;
384
384
385
+ export interface ILinearDependenciesOptions {
386
+ thresholdValue ?: number ;
387
+ thresholdError ?: number ;
388
+ }
389
+ export function linearDependencies (
390
+ matrix : MaybeMatrix ,
391
+ options ?: ILinearDependenciesOptions
392
+ ) : Matrix ;
393
+
385
394
export function pseudoInverse (
386
395
matrix : MaybeMatrix ,
387
396
threshold ?: number
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ function dependenciesOneRow(
46
46
47
47
export function linearDependencies ( matrix , options = { } ) {
48
48
const { thresholdValue = 10e-10 , thresholdError = 10e-10 } = options ;
49
+ matrix = Matrix . checkMatrix ( matrix ) ;
49
50
50
51
var n = matrix . rows ;
51
52
var results = new Matrix ( n , n ) ;
You can’t perform that action at this time.
0 commit comments