Code Monkey home page Code Monkey logo

adept's People

Contributors

rjhogan avatar rufflewind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adept's Issues

register storage class was deprecated in C++11

Hi,

I am getting warnings like:

1>./adept_source.h(560,6): warning : 'register' storage class specifier is deprecated and incompatible with C++1z [-Wdeprecated-register]
1> register Real multiplier = multiplier_[iop];

I think that with modern compilers there is no need to declare variables register - would it be possible to make adept more C++11 compatible?

Thanks,
Gorby

data type problem.

Hi,
I'm using Adept in my code and I have this kind statement

const xdouble a, b;
xdouble lambda1;
lambda1 = 0.5*(std::max(fabs(lambda1),  a*b) - lambda1);

But I got this compiling error:

 no matching function for call to ‘max(adept::internal::UnaryOperation<double, adept::internal::Fabs, adept::Active<double> >, adept::internal::enable_if<true, adept::internal::BinaryOperation<double, adept::Active<double>, adept::internal::Multiply, adept::Active<double> > >::type’
    lambda1 = 0.5*(std::max(fabs(lambda1), sat_Vn*rhoA) - lambda1);

Could you please help me fix this problem?

Thanks,
Ge

Erf causes error in Visual C++

Robin,
while compiling under VS2012 Update 5 I'm experiencing the follwing issue:
adept.h(1474): error C2784: 'adept::Erf<A> erf(const adept::Expression<A> &)' : could not deduce template argument for 'const adept::Expression<A> &' from 'adept::Real'

Have you any idea on how I can overtake this without update the VS version?
I guess I can avoid the #define ADEPT_DEFINE_UNARY_FUNCTION in the case of Erf and define it separately.

Should adept::Stack have copy semantics?

Hi,

I am not sure what it means to create a copy of adept::Stack:

adept::Stack a{};
auto b = a;

IMHO the above should not compile, but it does. At the same time adept::Stack should support move semantics, so people can do "Almost Always Auto":

auto c = adept::Stack{};

Thanks,
Gorby

Memory error on simple program

Hi. I am trying to use your library, and installation seemed ok. But I can't make a simple program run. I just assined a value to an adouble and tried to print, and I get:

fish: Job 1, “./a.out ” terminated by signal SIGSEGV (Address boundary error)

Are there any compilation tricks I am missing?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.