linalg 1.8.2
A linear algebra library that provides a user-friendly interface to several BLAS and LAPACK routines.
Loading...
Searching...
No Matches
linalg::swap Interface Reference

Swaps the contents of two arrays. More...

Public Member Functions

 swap_dbl
 
 swap_cmplx
 

Detailed Description

Swaps the contents of two arrays.

Syntax
subroutine swap(real(real64) x(:), real(real64) y(:), optional class(errors) err)
subroutine swap(complex(real64) x(:), complex(real64) y(:), optional class(errors) err)
Parameters
[in,out]xOne of the N-element arrays.
[in,out]yThe other N-element array.
[in,out]errAn optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
  • LA_ARRAY_SIZE_ERROR: Occurs if x and y are not the same size.

Definition at line 681 of file linalg.f90.


The documentation for this interface was generated from the following file: