|
Ublas : |
Subject: [ublas] CSR MATRIX creation from 3 arrays
From: Riccardo Rossi (rrossi_at_[hidden])
Date: 2009-07-21 03:50:17
Hi everyone.
I would like a hint on the creation of a compressed_matrix in
ublas:
i have currently three vectors of the type (Say)
double* values
int* column_indices
int* row_indices
exactly the same as the internals that are needed inside the ublas
compressed matrix. I also know all of the data i may wish to have on my
matrix.
How can i use this data to construct a ublas matrix ... without doing a
copy? (a bit in the spirit of the carray stuff ...)
The issue i describe is very frequently encountered in many different
contexts. For example i may wish to allocate myself the values and
column_indices vectors so to have control on the data locality in
openmp
any suggestion on this would be very welcome
thank you for the attention
Riccardo
-
________________________________________________________________
Riccardo Rossi, Ph.D, Civil Engineer
member of the Kratos Group: kratos.cimne.upc.es
Centro Internacional de Métodos Numéricos en IngenierÃa (CIMNE)
Universidad Politécnica de Cataluña (UPC)
Edificio C-1, campus Norte UPC
Gran Capitan, s/n
08034 Barcelona, España
Tel. (+34) 93 401 73 99
________________________________________________________________
AVISO IMPORTANTE
Los datos de carácter personal contenidos en el mensaje, se registrarán
en un fichero para facilitar la gestión de las comunicaciones de CIMNE.
Se pueden ejercitar los derechos de acceso, rectificación, cancelación y
oposición por escrito, dirigiéndose a nuestras oficinas de CIMNE, Gran
Capitán s/n, Edificio C1 - Campus Norte UPC, 08034 Barcelona, España.
AVÃS IMPORTANT
Les dades de carà cter personal contingudes en aquest missatge es
registraran en un fitxer per facilitar la gestió de les comunicacions
del CIMNE. Es poden exercir els drets d'accés, rectificació,
cancel·lació i oposició, per escrit a les nostres oficines del CIMNE,
Gran Capità s/n, Edifici C1, Campus Nord UPC, 08034 Barcelona, Espanya.
IMPORTANT NOTICE
All personal data contained in this mail will be processed
confidentially and stored in a file property of CIMNE in order to manage
corporate communications. You may exercise the right of access,
rectification, deletion and objection by letter sent to CIMNE, Gran
Capitán, Edificio C1 - Campus Norte UPC, 08034 Barcelona, Spain.