diff --git a/src/matrix/matrixAbsoluteMedian.ts b/src/matrix/matrixAbsoluteMedian.ts index bf326929..ed4a3bea 100644 --- a/src/matrix/matrixAbsoluteMedian.ts +++ b/src/matrix/matrixAbsoluteMedian.ts @@ -1,4 +1,5 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; + import { xMedian } from '../x/index.ts'; /** diff --git a/src/matrix/matrixAutoCorrelation.ts b/src/matrix/matrixAutoCorrelation.ts index baaad2aa..33c4bfbe 100644 --- a/src/matrix/matrixAutoCorrelation.ts +++ b/src/matrix/matrixAutoCorrelation.ts @@ -1,4 +1,5 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; + import { xCorrelation } from '../x/index.ts'; export function matrixAutoCorrelation( diff --git a/src/matrix/matrixBoxPlot.ts b/src/matrix/matrixBoxPlot.ts index 8597614d..888d43b7 100644 --- a/src/matrix/matrixBoxPlot.ts +++ b/src/matrix/matrixBoxPlot.ts @@ -1,6 +1,4 @@ -import type { DoubleArray } from 'cheminfo-types'; - -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleArray, DoubleMatrix } from 'cheminfo-types'; export interface MatrixBoxPlot { q1: Float64Array; diff --git a/src/matrix/matrixCenterZMean.ts b/src/matrix/matrixCenterZMean.ts index f4ce22b1..61a41b31 100644 --- a/src/matrix/matrixCenterZMean.ts +++ b/src/matrix/matrixCenterZMean.ts @@ -1,4 +1,4 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; import { matrixCreateEmpty } from './matrixCreateEmpty.ts'; diff --git a/src/matrix/matrixCheck.ts b/src/matrix/matrixCheck.ts index 59e89b21..44b77b52 100644 --- a/src/matrix/matrixCheck.ts +++ b/src/matrix/matrixCheck.ts @@ -1,4 +1,4 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; export function matrixCheck(data: DoubleMatrix): void { if (data.length === 0 || data[0].length === 0) { diff --git a/src/matrix/matrixCheckRanges.ts b/src/matrix/matrixCheckRanges.ts index a82f8b8b..bb1b1b66 100644 --- a/src/matrix/matrixCheckRanges.ts +++ b/src/matrix/matrixCheckRanges.ts @@ -1,4 +1,4 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; export interface SubmatrixBoundaries { /** diff --git a/src/matrix/matrixColumnsCorrelation.ts b/src/matrix/matrixColumnsCorrelation.ts index ff1f60c6..bcda9ff1 100644 --- a/src/matrix/matrixColumnsCorrelation.ts +++ b/src/matrix/matrixColumnsCorrelation.ts @@ -1,6 +1,6 @@ +import type { DoubleMatrix } from 'cheminfo-types'; import { Matrix } from 'ml-matrix'; -import type { DoubleMatrix } from '../types/index.ts'; import { xCorrelation } from '../x/index.ts'; /** diff --git a/src/matrix/matrixCreateEmpty.ts b/src/matrix/matrixCreateEmpty.ts index ca5cfa62..07658edd 100644 --- a/src/matrix/matrixCreateEmpty.ts +++ b/src/matrix/matrixCreateEmpty.ts @@ -1,4 +1,5 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; + import type { NumberArrayConstructor, NumberArrayType, diff --git a/src/matrix/matrixHistogram.ts b/src/matrix/matrixHistogram.ts index e3cedc39..18e1ff69 100644 --- a/src/matrix/matrixHistogram.ts +++ b/src/matrix/matrixHistogram.ts @@ -1,6 +1,5 @@ -import type { DataXY } from 'cheminfo-types'; +import type { DataXY, DoubleMatrix } from 'cheminfo-types'; -import type { DoubleMatrix } from '../types/index.js'; import type { XHistogramOptions } from '../x/index.ts'; import { xHistogram } from '../x/index.ts'; diff --git a/src/matrix/matrixMedian.ts b/src/matrix/matrixMedian.ts index dc9799f2..260330ee 100644 --- a/src/matrix/matrixMedian.ts +++ b/src/matrix/matrixMedian.ts @@ -1,4 +1,5 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; + import { xMedian } from '../x/index.ts'; import { matrixToArray } from './matrixToArray.ts'; diff --git a/src/matrix/matrixMinMaxAbsoluteZ.ts b/src/matrix/matrixMinMaxAbsoluteZ.ts index a465fb53..2afd0d1d 100644 --- a/src/matrix/matrixMinMaxAbsoluteZ.ts +++ b/src/matrix/matrixMinMaxAbsoluteZ.ts @@ -1,5 +1,4 @@ -import type { DoubleMatrix } from '../types/index.ts'; - +import type { DoubleMatrix } from 'cheminfo-types'; /** * Get min and max of the absolute values of Z. * @param matrix - matrix [rows][cols]. diff --git a/src/matrix/matrixMinMaxZ.ts b/src/matrix/matrixMinMaxZ.ts index ff088486..86af06eb 100644 --- a/src/matrix/matrixMinMaxZ.ts +++ b/src/matrix/matrixMinMaxZ.ts @@ -1,4 +1,4 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; import { matrixCheck } from './matrixCheck.ts'; diff --git a/src/matrix/matrixNoiseStandardDeviation.ts b/src/matrix/matrixNoiseStandardDeviation.ts index 94cfcce9..c68012a0 100644 --- a/src/matrix/matrixNoiseStandardDeviation.ts +++ b/src/matrix/matrixNoiseStandardDeviation.ts @@ -1,4 +1,5 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; + import { xNoiseStandardDeviation } from '../x/index.ts'; import { matrixToArray } from './matrixToArray.ts'; diff --git a/src/matrix/matrixPQN.ts b/src/matrix/matrixPQN.ts index ddf3061b..f72cfa20 100644 --- a/src/matrix/matrixPQN.ts +++ b/src/matrix/matrixPQN.ts @@ -1,6 +1,6 @@ +import type { DoubleMatrix } from 'cheminfo-types'; import { Matrix } from 'ml-matrix'; -import type { DoubleMatrix } from '../types/index.ts'; import { xMedian } from '../x/index.ts'; export interface MatrixPQNOptions { diff --git a/src/matrix/matrixSetSubMatrix.ts b/src/matrix/matrixSetSubMatrix.ts index 8a3f2f93..9ddd7b11 100644 --- a/src/matrix/matrixSetSubMatrix.ts +++ b/src/matrix/matrixSetSubMatrix.ts @@ -1,4 +1,4 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; import { matrixCheckRanges } from './matrixCheckRanges.ts'; diff --git a/src/matrix/matrixToArray.ts b/src/matrix/matrixToArray.ts index 12218aef..7bb3be8e 100644 --- a/src/matrix/matrixToArray.ts +++ b/src/matrix/matrixToArray.ts @@ -1,4 +1,4 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; import { matrixCheck } from './matrixCheck.ts'; diff --git a/src/matrix/matrixZRescale.ts b/src/matrix/matrixZRescale.ts index 3f8a88bb..f510127b 100644 --- a/src/matrix/matrixZRescale.ts +++ b/src/matrix/matrixZRescale.ts @@ -1,4 +1,5 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; + import type { DoubleArrayConstructor, DoubleArrayType, diff --git a/src/matrix/matrixZRescalePerColumn.ts b/src/matrix/matrixZRescalePerColumn.ts index 1e9c856e..64d1562d 100644 --- a/src/matrix/matrixZRescalePerColumn.ts +++ b/src/matrix/matrixZRescalePerColumn.ts @@ -1,4 +1,4 @@ -import type { DoubleMatrix } from '../types/index.ts'; +import type { DoubleMatrix } from 'cheminfo-types'; import { matrixCreateEmpty } from './matrixCreateEmpty.ts'; diff --git a/src/types/DoubleMatrix.ts b/src/types/DoubleMatrix.ts deleted file mode 100644 index 249029e7..00000000 --- a/src/types/DoubleMatrix.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { DoubleArray } from 'cheminfo-types'; - -export type DoubleMatrix = DoubleArray[]; diff --git a/src/types/index.ts b/src/types/index.ts index 4ce9fea3..7cf638b2 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,4 +1,3 @@ export * from './DataReIm.ts'; export * from './DataXReIm.ts'; -export * from './DoubleMatrix.ts'; export * from './Point.ts';