SCM

SCM Repository

[batman] View of /pkg/batman/src/Vpow.cpp
ViewVC logotype

View of /pkg/batman/src/Vpow.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 120 - (download) (as text) (annotate)
Tue Feb 12 16:30:46 2013 UTC (6 years, 7 months ago) by jie
File size: 254 byte(s)
pkg
// written by Dr. Jie Hao, Dr William Astle
#include <vector>
#include <cmath>

using namespace std;

void Vpow (vector<double> * V, double s, vector<double> * P)
{   
    for (unsigned int i = 0; i<(*V).size(); i++)
        (*P)[i] = pow((*V)[i],s);
}


root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge