Skip to content

Commit 3a28b5f

Browse files
committed
Add prototype of projection function
To use it in positiveLinearCombination
1 parent f9287a1 commit 3a28b5f

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/__tests__/matrix/projection.js

Whitespace-only changes.

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ export {
2323
export { default as LuDecomposition, default as LU } from './dc/lu.js';
2424
export { default as QrDecomposition, default as QR } from './dc/qr.js';
2525
export { default as NNMFDecomposition, default as NNMF } from './dc/nnmf.js';
26+
export { projection } from './projection';

src/projection.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Matrix, WrapperMatrix2D } from './index';
2+
3+
/**
4+
* Compute the projection of a vector into a
5+
* @param {matrix} vector
6+
* @param {matrix} vectorspace
7+
* @return {matrix} projection of vector
8+
*/
9+
export function projection(vector, vectorspace) {
10+
return (vector);
11+
}

0 commit comments

Comments
 (0)