Skip to content

Commit

Permalink
Add prototype of projection function
Browse files Browse the repository at this point in the history
To use it in positiveLinearCombination
  • Loading branch information
Goneiross committed Nov 29, 2018
1 parent f9287a1 commit 3a28b5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Empty file.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ export {
export { default as LuDecomposition, default as LU } from './dc/lu.js';
export { default as QrDecomposition, default as QR } from './dc/qr.js';
export { default as NNMFDecomposition, default as NNMF } from './dc/nnmf.js';
export { projection } from './projection';
11 changes: 11 additions & 0 deletions src/projection.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Matrix, WrapperMatrix2D } from './index';

/**
* Compute the projection of a vector into a
* @param {matrix} vector
* @param {matrix} vectorspace
* @return {matrix} projection of vector
*/
export function projection(vector, vectorspace) {
return (vector);
}

0 comments on commit 3a28b5f

Please sign in to comment.