Sign.hh 613 Bytes
/**
 * Sign.hh
 *
 *  Created on: 23 jun. 2018
 *      Author: AKKA IS
 */

#ifndef SIGN_HH_
#define SIGN_HH_

#include <vector>

/**
 * @bried Compute the sign of el
 */
int Sign(const float& el);

int Sign(const double& el);

int Sign(const long double& el);

int Sign(const int& el);

int Sign(const short& el);

std::vector<int> Sign(const std::vector<float>& el);

std::vector<int> Sign(const std::vector<double>& el);

std::vector<int> Sign(const std::vector<long double>& el);

std::vector<int> Sign(const std::vector<int>& el);

std::vector<int> Sign(const std::vector<short>& el);

#endif /* SIGN_HH_ */