
4

performance of symbolicc ++
source link: https://www.codesd.com/item/performance-of-symbolicc.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

performance of symbolicc ++
advertisements
Anyone has experience with the SymbolicC++ ? I'm trying to solve some linear problem with this library, but the performance seems not acceptable, here's my test
#pragma warning(disable: 4800 4801 4101 4390)
#include<iostream>
using namespace std;
#include "Symbolic/symbolicc++.h"
int main() {
// x==10 y==9 z==7
Symbolic x("x"), y("y"), z("z");
Equations rules = (
x + y + z == 26,
x - y == 1,
2*x - y + z == 18
);
list<Symbolic> s = (x, y, z);
list<Equations> result = solve(rules, s); // slow here
for(auto& x : result) {
cout << x << endl;
}
}
The solve function takes 402ms(debug)/67ms(release) on an i7 cpu, is that too slow for a simple problem like this? Anyone knows why?
Thanks
Symbolic computations are slow, they need if you want to handle formulaes.
If you just want to solve system of linear equations, consider using tool, specially created for that, like Eigen(http://eigen.tuxfamily.org/index.php?title=Main_Page), BLAS(http://www.netlib.org/blas/).
Tags
linear
Related Articles
Slow Performance of MySQL SELECT
I have the following database schema: https://dl.dropbox.com/u/37915176/schema.PNG I have more than 2 millions records in meter_relevation. The data is coming from several electrical meters which are associated to appliances (devices) with the meter_
How to perform a LEFT JOIN in SQL Server between two SELECT statements?
I have two SELECT statements in SQL Server like these: (SELECT [UserID] FROM [User]) (SELECT [TailUser], [Weight] FROM [Edge] WHERE [HeadUser] = 5043) I want to perform a LEFT JOIN between these two SELECT statements on [UserID] attribute and [TailUs
Visual Studio 2015 Debugger - High Performance Impact on SqlCommand
After upgrading from VS2013 to VS2015, I was shocked by how slow my web application runs with the debugger attached. So I decided to do a comparison between VS2013 and VS2015 using MiniProfiler to analyze a particularly slow page: Interestingly, when
Performance penalties for using NIB files?
I am curious to know if anyone has any experience comparing the load time performance of iPhone apps with views laid out in NIBs vs. views laid out entirely programmatically (i.e. instantiating UITextView, adding it to the view, instantiating UIButto
Code Design: Performance vs. Maintainability
Contextualisation Im am implementing a bytecode instrumenter using the soot framework in a testing context and I want to know which design is better. I am building the TraceMethod object for every Method in a Class that I am instrumenting and I want
Performance of sql Count *
asp.net and sql server, have sqls for selecting a subset of rows, I need the count* frequently Of course I can have a select count(*) for each of these sqls in each roundtrip but soon it will become too slow. -How do you make it really fast?Are you e
Can dynamic generation of an HTML table in ASP.net generate significant performance issues?
I am working on a page with several dynamically generated tables where the original developers used approximately the following logic: <table> <tr>...</tr> <asp:PlaceHolder ID="ph1" runat="server" /> </table&
Memory bandwidth performance for modern machines
I'm designing a real-time system that occasionally has to duplicate a large amount of memory. The memory consists of non-tiny regions, so I expect the copying performance will be fairly close to the maximum bandwidth the relevant components (CPU, RAM
How to improve the performance of the application of a single page?
Introduction I have a (mostly) single-page application built with BackboneJS and a Rails backend. Because most of the interaction happens on one page of the webapp, when the user first visits the page I basically have to pull a ton of information out
How to perform ALTER DATABASE in a TRANSACTION In SqlServer
I am doing some work on a remote sql server database which take some time and i need to block any other connection to it so no data get lost i believe i should use single user mode to do this i need to get it back to multi user mode after i finish my
Improve performance for threading
I have an app with a start button that calls a long running time function. In order to add a Stop button I've added a thread for this function to avoid the UI freezes and be able to stop the processing in anytime. The code without threading in averag
Telerik RadTreeListView poor performance
I'm having a little performance problem with the Telerik WPF hierarchical gridview & considering alternative 3rd party controls. Check out this simple scenario (zip project) Its a RadTreeListView, bound up to an entity with a combobox to expand to ea
Performance: "or" PHP
This question already has an answer here: What is the difference between single-quoted and double-quoted strings in PHP? 10 answers I'm working on a big project in php and I need to make sure it's all fast. So I'm wondering: what is faster to use, "
Jquery to browse lines and perform a mathematical function
I have a script that runs through a table, not ideal but I need to get it working. The table fields cubicmeters and cubesperbundle are populated by an earlier script. What I need to do, is now loop through the table and perform a math function on the
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK