Page 1 of 1

Reading vector from file in CULA Sparse demo

PostPosted: Sat Mar 03, 2012 5:19 am
by arthur
Hello!

We are trying to use CULA Sparse demo with our test matrix and right hand side vector.

It is working well when using 'b=ones' option but gives us error when we try to use file with vector in mtx format as input like following:
Error: could not process Matrix Market banner for...

Could you please specify with vector file format must be used to succesfully run iterativeBenchmark with our own file with right hand side vector.

Best regards

Re: Reading vector from file in CULA Sparse demo

PostPosted: Mon Mar 05, 2012 7:24 am
by john
Here is an example for a length 8 vector:

Code: Select all
%%MatrixMarket matrix array real general
8 1
2.0
1.0
7.0
5.0
0.62
-8.31
0.0
0.0

Re: Reading vector from file in CULA Sparse demo

PostPosted: Sat Mar 10, 2012 12:05 am
by arthur
Thank you, it works!