1 #ifndef __JMATH__JVECTORND__
2 #define __JMATH__JVECTORND__
14 namespace JPP {
using namespace JMATH; }
38 std::vector<double>(size, 0.0)
47 for (iterator i = this->begin(); i != this->end(); ++i) {
63 const double* p = this->
data();
64 const double* q = vector.data();
66 for (
size_t i = this->size(); i != 0; --i, ++p, ++q) {
85 const JFormat format(out, getFormat<JVectorND>(
JFormat_t(9, 3, std::ios::fixed | std::ios::showpos)));
87 for (JVectorND::const_iterator i =
object.begin(); i !=
object.end(); ++i) {
88 out << format << *i <<
' ';
Auxiliary classes and methods for mathematical operations.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JVectorND()
Default constructor.
double getDot(const JVectorND &vector) const
Get dot product.
JVectorND(size_t size)
Constructor.
friend std::ostream & operator<<(std::ostream &out, const JVectorND &object)
Print ASCII formatted output.