Boost logo

Ublas :

From: Seabook (cipoke_at_[hidden])
Date: 2006-12-05 23:10:57

Dear all,

I am Kuo-Shih.
I am trying to use uBLAS for my project.
There are many sparse and/or symmetry matrix in my algorithm.
I run it on Visuall C++ .NET 2003.
My NB info.
OS: Windows XP

There are some data about normal/sparse/symmetry matrix.
Sparse 139094 46390
Symmetry 139094 46390
Normal 2578 1329
The efficiency are really terrible?!
Did I forget something ? (such as declare or method of prod or assign data )

Thanks for answers~

Sincerely yours,

----my source code----

#include "stdafx.h"
#include "time.h"
#include "gc_matrix.h"
#using <mscorlib.dll>
#include <boost\numeric\ublas\matrix.hpp>
#include <boost\numeric\ublas\symmetric.hpp>
#include <boost\numeric\ublas\matrix_sparse.hpp>
using namespace System;
using namespace boost::numeric::ublas;

int _tmain()
        int i,j,ta1,ta2,dt_normal,tb1,tb2,dt_Sparse,tc1,tc2,dt_Symmetry;
        float m1 __gc[,]=new float __gc[100,100];
        float m2 __gc[,]=new float __gc[100,100];
        float m3 __gc[,]=new float __gc[100,100];
        symmetric_matrix<float> sy1(100,100),sy2(100, 100),sy3(100,100);
        compressed_matrix<float> sp1(100,100),sp2(100,100),sp3(100,100);

        //---initial matrix sparse & symmetry---//

        //----Sparse matrix------//
        dt_Sparse=tb2-tb1; // time of sparse matrix prod
        printf("%d", dt_Sparse);
        //-----symmetry matrix------//
        printf("%d", dt_Symmetry);
        //-----normal matrix-----//
        printf("%d", dt_normal);

        Console::WriteLine(S" Good Job!!! ");
        return 0;

View this message in context:
Sent from the Boost - uBLAS mailing list archive at