StarNEig Library  version v0.1-beta.2
A task-based library for solving nonsymmetric eigenvalue problems
blacs_matrix.h File Reference

This file contains data types and functions for BLACS formatted distributed matrices. More...

Go to the source code of this file.

Data Structures

struct  starneig_blacs_descr
 BLACS descriptor. More...
 

BLACS contexts

typedef int starneig_blacs_context_t
 BLACS context.
 
starneig_blacs_context_t starneig_distr_to_blacs_context (starneig_distr_t distr)
 Convers a data distribution to a BLACS context. More...
 
starneig_distr_t starneig_blacs_context_to_distr (starneig_blacs_context_t context)
 Convers a BLACS context to a data distribution. More...
 
int starneig_distr_is_blacs_compatible (starneig_distr_t distr)
 Checks whether a data distribution is BLACS compatible. More...
 
int starneig_distr_is_compatible_with (starneig_distr_t distr, starneig_blacs_context_t context)
 Checks whether a data distribution is compatible with a given BLACS context. More...
 

BLACS descriptors

typedef struct starneig_blacs_descr starneig_blacs_descr_t
 BLACS descriptor.
 
void starneig_create_blacs_matrix (int rows, int cols, int row_blksz, int col_blksz, starneig_datatype_t type, starneig_blacs_context_t context, starneig_blacs_descr_t *descr, void **local)
 Creates a BLACS matrix with uninitialized matrix elements. More...
 
void starneig_distr_matrix_to_blacs_descr (starneig_distr_matrix_t matrix, starneig_blacs_context_t context, starneig_blacs_descr_t *descr, void **local)
 Convers a distributed matrix to a BLACS descriptor and a matching local array. More...
 
starneig_distr_matrix_t starneig_blacs_descr_to_distr_matrix (starneig_datatype_t type, starneig_distr_t distr, starneig_blacs_descr_t *descr, void *local)
 Convers a BLACS descriptor and a matching local array to a distributed matrix. More...
 
int starneig_distr_matrix_is_blacs_compatible (starneig_distr_matrix_t matrix)
 Checks whether a distributed matrix is BLACS compatible. More...
 
int starneig_distr_matrix_is_compatible_with (starneig_distr_matrix_t matrix, starneig_blacs_context_t context)
 Checks whether a distributed matrix is compatible with a given BLACS context. More...
 

Detailed Description

This file contains data types and functions for BLACS formatted distributed matrices.

Author
Mirko Myllykoski (mirko.nosp@m.m@cs.nosp@m..umu..nosp@m.se), Umeå University

LICENSE

Copyright (c) 2019, Umeå Universitet

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.