- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
For the scalapack, when I set the lwork = -1, I can get a result from work[0].
For example, the work[0] == 900000000.
So the lwork = 900000000.
How about the length of work? is it lwork * sizeof(double), or just lwork?
should I use work = new double[900000000] or work = (double *)malloc(900000000)?
Link copiado
1 Responder
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
MKL routine arguments with the name 'work' and 'iwork' have corresponding arguments that are equal to the size (i.e., the number of elements in the array) of the 'work' and 'iwork' arrays.
It is best not to think in terms of bytes in this context, since the number of bytes = lwork X byte size of one element of 'work', and 'work' may be float, double, complex or double complex.

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora