mathjs/lib/function/algebra/sparse/sparse_flip.js
Rogelio J. Baucells 4197743500 sparse lu()
2015-04-23 17:39:30 -04:00

23 lines
432 B
JavaScript

'use strict';
function factory () {
/**
* This function "flips" its input about the integer -1.
*
* @param {Number} i The value to flip
*
* Reference: http://faculty.cse.tamu.edu/davis/publications.html
*/
var sparse_flip = function (i) {
// flip the value
return -i - 2;
};
return sparse_flip;
}
exports.name = 'sparse_flip';
exports.path = 'sparse';
exports.factory = factory;