/* * KernelBasicVector.hpp * AwesomeAttractor * * Created by Joshua Moerman on 18-07-10. * Copyright 2010 Rodo. All rights reserved. * */ #ifndef KERNELBASICVECTOR_HPP #define KERNELBASICVECTOR_HPP #include "../AttractorKernel.hpp" /* This is a partial default implementation of the abstract AttractorKernel class you can easily use the constructor to initialise the vectors and stuff... */ class KernelBasicVector : virtual public AttractorKernel { protected: unsigned int myDimension; double * vectorNew; double * vectorOld; KernelBasicVector(const unsigned int dimension); public: // getter functions for teh resulta (can be used as setters, and it may be used as such) virtual double * & vector(); virtual double * & previousVector(); virtual unsigned int dimension() const; }; #endif