|
Ublas : |
Subject: [ublas] Question (one more) about stack arrays and matrices
From: Riccardo Rossi (rrossi_at_[hidden])
Date: 2010-11-04 04:34:42
Dear list,
i would like to ask a question that has been asked many times...but
for which i still did not get a clear answer: fixed size (small) arrays
and matrices.
I am looking for the correct way in ublas to define a fixed size
array and a fixed size matrix. I need them to be allocated on the stack
and not on the heap.
right now i am doing:
array_1d<double,3> //this is an array we defined internally and that we
know goes to the stack
and
boost::numeric::ublas::bounded_matrix<double,3,2> A ... this is the
ublas's bounded matrix...but to be honest i don't understand if
internally it is allocated on the stack or on the heap(...i mean..using
new or malloc)
could anyone have a word on this?
thank you in advance
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.