Cartesius Library
SparseMatrix.f90 File Reference

Data Types

type  sparsematrix::sparse_matrix
 
interface  sparsematrix::assignment(=)
 
interface  sparsematrix::operator(+)
 
interface  sparsematrix::operator(-)
 
interface  sparsematrix::operator(.tr.)
 
interface  sparsematrix::operator(.compr.)
 
interface  sparsematrix::operator(.comm.)
 
interface  sparsematrix::operator(.abs.)
 
interface  sparsematrix::operator(*)
 

Modules

module  sparsematrix
 

Functions/Subroutines

subroutine sparsematrix::mat2sparse (sp, mat)
 Convert a normal matrix into a sparse matrix. More...
 
subroutine sparsematrix::sparse2mat (mat, sp)
 Convert sparse matrix into a normal one. More...
 
subroutine sparsematrix::sparse2sparse (spout, spin)
 Copy the data of one sparse matrix into another. More...
 
type(sparse_matrix) function sparsematrix::sp_neg (a)
 Return the negative of the given matrix. More...
 
type(sparse_matrix) function sparsematrix::sp_abs (a)
 
type(sparse_matrix) function sparsematrix::sum_sparse (a, b)
 Returns the sum of the two sparse matrices. More...
 
type(sparse_matrix) function sparsematrix::sub_sparse (a, b)
 Returns the difference between two matrices. More...
 
type(sparse_matrix) function sparsematrix::trans_matrix (a)
 Returns a transposed sparse matrix. More...
 
type(sparse_matrix) function sparsematrix::mul_sparse (a, b)
 Returns the product of two sparse matrices. More...
 
type(sparse_matrix) function sparsematrix::mul_sparse_num (num, a)
 
type(sparse_matrix) function sparsematrix::sp_compr (a)
 Returns the given matrix, taking out the zero-values. More...
 
type(sparse_matrix) function sparsematrix::commute_sparse (a, b)
 Returns the commutator of two sparse matrices. More...
 
real function, dimension(sp%nr) sparsematrix::mul_sparse_vcol (sp, vin)
 Mutiplies a sparse matrix by a column-vector. More...
 
real function, dimension(sp%nc) sparsematrix::mul_sparse_vrow (vin, sp)
 Multipiles a row-vector by a sparse matrix. More...