This interface provides methods to assert that the shape of its input vector or matrix is the expected shape. It throws an error if not.
Utility function to assert the shape of a vector.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=sp), | intent(in) | :: | v(:) |
Vector whose dimension need to be asserted. |
||
integer, | intent(in) | :: | size(:) |
Expected dimensions of v. |
||
character(len=*), | intent(in) | :: | vecname |
Name of the asserted vector. |
||
character(len=*), | intent(in) | :: | module |
Name of the module where assertion is done. |
||
character(len=*), | intent(in) | :: | procedure |
Name of the routine where assertion is done. |
Utility function to assert the shape of a matrix.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=sp), | intent(in) | :: | A(:,:) |
Matrix whose dimension need to be asserted. |
||
integer, | intent(in) | :: | size(:) |
Expected dimensions of A. |
||
character(len=*), | intent(in) | :: | matname |
Name of the asserted matrix. |
||
character(len=*), | intent(in) | :: | module |
Name of the module where assertion is done. |
||
character(len=*), | intent(in) | :: | procedure |
Name of the routine where assertion is done. |
Utility function to assert the shape of a vector.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | v(:) |
Vector whose dimension need to be asserted. |
||
integer, | intent(in) | :: | size(:) |
Expected dimensions of v. |
||
character(len=*), | intent(in) | :: | vecname |
Name of the asserted vector. |
||
character(len=*), | intent(in) | :: | module |
Name of the module where assertion is done. |
||
character(len=*), | intent(in) | :: | procedure |
Name of the routine where assertion is done. |
Utility function to assert the shape of a matrix.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | A(:,:) |
Matrix whose dimension need to be asserted. |
||
integer, | intent(in) | :: | size(:) |
Expected dimensions of A. |
||
character(len=*), | intent(in) | :: | matname |
Name of the asserted matrix. |
||
character(len=*), | intent(in) | :: | module |
Name of the module where assertion is done. |
||
character(len=*), | intent(in) | :: | procedure |
Name of the routine where assertion is done. |
Utility function to assert the shape of a vector.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=sp), | intent(in) | :: | v(:) |
Vector whose dimension need to be asserted. |
||
integer, | intent(in) | :: | size(:) |
Expected dimensions of v. |
||
character(len=*), | intent(in) | :: | vecname |
Name of the asserted vector. |
||
character(len=*), | intent(in) | :: | module |
Name of the module where assertion is done. |
||
character(len=*), | intent(in) | :: | procedure |
Name of the routine where assertion is done. |
Utility function to assert the shape of a matrix.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=sp), | intent(in) | :: | A(:,:) |
Matrix whose dimension need to be asserted. |
||
integer, | intent(in) | :: | size(:) |
Expected dimensions of A. |
||
character(len=*), | intent(in) | :: | matname |
Name of the asserted matrix. |
||
character(len=*), | intent(in) | :: | module |
Name of the module where assertion is done. |
||
character(len=*), | intent(in) | :: | procedure |
Name of the routine where assertion is done. |
Utility function to assert the shape of a vector.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=dp), | intent(in) | :: | v(:) |
Vector whose dimension need to be asserted. |
||
integer, | intent(in) | :: | size(:) |
Expected dimensions of v. |
||
character(len=*), | intent(in) | :: | vecname |
Name of the asserted vector. |
||
character(len=*), | intent(in) | :: | module |
Name of the module where assertion is done. |
||
character(len=*), | intent(in) | :: | procedure |
Name of the routine where assertion is done. |
Utility function to assert the shape of a matrix.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=dp), | intent(in) | :: | A(:,:) |
Matrix whose dimension need to be asserted. |
||
integer, | intent(in) | :: | size(:) |
Expected dimensions of A. |
||
character(len=*), | intent(in) | :: | matname |
Name of the asserted matrix. |
||
character(len=*), | intent(in) | :: | module |
Name of the module where assertion is done. |
||
character(len=*), | intent(in) | :: | procedure |
Name of the routine where assertion is done. |