473,394 Members | 2,100 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,394 software developers and data experts.

comparing boost::numeric::ublas::matrix

Anyone know an easy way to compare to boost matrices using the same
template argument for equality?

boost::numeric::ublas::matrix<doublea(2, 2);
boost::numeric::ublas::matrix<doubleb(4, 4);

if( a != b )
{
// not equal
}

Does not seem to work, as the != operator is not defined.

Oct 25 '07 #1
0 1358

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rex_chaos | last post by:
Hi all, I am looking for a high-performance container(matrix and vector) for numerical computation. Someone recommended the boost::multi_array. After having looked at the documentation, I know...
9
by: Pat | last post by:
Given A, B and C I would like to calculate the sum of each entry: A=B+C for each i,j The easiest way is to use for-loop, but I think the performance is not good. Is it possible to find...
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...
5
by: dvir | last post by:
Hi I want to declare a variable which is pointer to a class at my header. here is my header: base_functions.H ----------------------------- #ifndef BASE_FUNCTIONS_H #define...
4
by: dvir | last post by:
Hi I have a runing error while trying to initialize a class. this is my code: main.C ------------- #include "tdagent.H" #include "simple_env.H" #include <vector>
1
by: Preben | last post by:
Hi, don't know if this is the correct group, but try anyway. I would like to use boostbindings from the boost sandbox together with my project where I use boost::numeric::ublas vectors and...
1
by: utab | last post by:
Dear all, I have a question regarding an assignment operation This is the statement: "If you know for sure that the left hand expression and the right hand expression have no common storage,...
1
by: sanjeev.p3 | last post by:
I need to pass ublas::matrix data to a legacy C API which expects input in the form: void doSomething(double* data,...); If I have a std::vector<doublemyA this is easy. I do: ...
1
by: kundasang | last post by:
Hi. I just downloaded boost library from boost.org then build and I don't know what does binary precompiled means. Well, I have installed it and I using bloodshed Dev-Cpp compiler. <bThen,...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...

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.