473,396 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

typedef Matrix from newmat

I have written a program in C++ that uses extensively matrices operations. I store some intermediate matrices in a class.

However, it seems that my program spends more than half of the execution time on the newmat4.cpp function GetStore() which is caused by the typedef Matrix I have. Any ideas how i can define eliminate this issue?

Regards
Jun 17 '11 #1
1 2138
Banfa
9,065 Expert Mod 8TB
Not without seeing more of the code.

How did you measure those execution metrics?
Jun 18 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: zhouxn | last post by:
template <class T> class matrix { public: typedef int size_type; typedef T data_type; typedef T& reference; typedef const T& const_reference; typedef vector<T> row; typedef vector<row>...
15
by: christopher diggins | last post by:
Here is some code I wrote for Matrix multiplication for arbitrary dimensionality known at compile-time. I am curious how practical it is. For instance, is it common to know the dimensionality of...
11
by: bob | last post by:
Hi, given a vector of vectors of strings thus; typedef std::vector<std::string> product; typedef std::vector<product> product_matrix; whats the fastest, most efficient means of streaming...
17
by: Steve Carter | last post by:
Can someone please explain why the following is not possible? typedef foobar { int x; foobar *next; /* why can't we do this? */ }; Thanks
20
by: Frank-O | last post by:
Hi , Recently I have been commited to the task of "translating" some complex statistical algorithms from Matlab to C++. The goal is to be three times as fast as matlab ( the latest) . I've...
15
by: sam_cit | last post by:
I noticed that what is being done by typedef can very much be done by macro, and i also think there must be a specific reason as to why typedef was introduced, what is the exact difference, and...
7
by: mshaaban | last post by:
Hello Sir, In my code I have made a typedef 2D array (large array) typedef char matrix; Then in the program I used malloc to allocate memory for the array matrix *m; m =malloc(sizeof *m);...
5
by: adam.kleinbaum | last post by:
Hi there, I'm a novice C programmer working with a series of large (30,000 x 30,000) sparse matrices on a Linux system using the GCC compiler. To represent and store these matrices, I'd like to...
11
by: Stefano112 | last post by:
Hi, i'm making a matrix class, here is my code: #ifndef MATRICE_H #define MATRICE_H #include <iostream> template <class T> class matrice { public:
0
by: zahraZ | last post by:
hello every body code below is about reading sparse matrix. Anyone understand this code? istream& operator>>(istream& is, Matrix& matrix) { Triple s; int p; is >> s.row >> s.col >> s.value; if...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.