lascl(3)
π lascl(3) β scale matrix π¦
okay so bestie, welcome to lascl(3) from the Library Functions Manual. This page is the whole scale-matrix situation: four Fortran subroutines with the same job but different data types, and every parameter, INFO code, author credit, and literal file line is staying right here. No cap. π
πΈ NAME
lascl - lascl: scale matrix
Short, sweet, iconic. Periodt. π
β¨ SYNOPSIS
π Functions
subroutine clascl (type, kl, ku, cfrom, cto, m, n, a, lda, info)βCLASCLmultiplies a general rectangular matrix by a real scalar defined ascto/cfrom.subroutine dlascl (type, kl, ku, cfrom, cto, m, n, a, lda, info)βDLASCLmultiplies a general rectangular matrix by a real scalar defined ascto/cfrom.subroutine slascl (type, kl, ku, cfrom, cto, m, n, a, lda, info)βSLASCLmultiplies a general rectangular matrix by a real scalar defined ascto/cfrom.subroutine zlascl (type, kl, ku, cfrom, cto, m, n, a, lda, info)βZLASCLmultiplies a general rectangular matrix by a real scalar defined ascto/cfrom.
π Detailed Description
This is the detailed-description zone, and the function documentation is right below with the full signature and parameter tea. We are keeping the order exactly as the manual gives it: clascl, then dlascl, then slascl. π
π₯ Function Documentation
π¦ subroutine clascl
subroutine clascl (character type, integer kl, integer ku, real cfrom, real
cto, integer m, integer n, complex, dimension( lda, * ) a, integer lda,
integer info)
CLASCL multiplies a general rectangular matrix by a real scalar defined as cto/cfrom.
Purpose: CLASCL multiplies the M by N complex matrix A by the real scalar CTO/CFROM. This is done without over/underflow as long as the final result CTO*A(I,J)/CFROM does not over/underflow. TYPE specifies that A may be full, upper triangular, lower triangular, upper Hessenberg, or banded. β¨
Parameters
TYPEβTYPE is CHARACTER*1;TYPEindices the storage type of the input matrix.= 'G': A is a full matrix.= 'L': A is a lower triangular matrix.= 'U': A is an upper triangular matrix.= 'H': A is an upper Hessenberg matrix.= 'B': A is a symmetric band matrix with lower bandwidth KL and upper bandwidth KU and with the only the lower half stored.= 'Q': A is a symmetric band matrix with lower bandwidth KL and upper bandwidth KU and with the only the upper half stored.= 'Z': A is a band matrix with lower bandwidth KL and upper bandwidth KU. See CGBTRF for storage details.
KLβKL is INTEGER; the lower bandwidth ofA. Referenced only ifTYPE = 'B','Q'or'Z'.KUβKU is INTEGER; the upper bandwidth ofA. Referenced only ifTYPE = 'B','Q'or'Z'.CFROMβCFROM is REAL.CTOβCTO is REAL. The matrixAis multiplied byCTO/CFROM.A(I,J)is computed without over/underflow if the final resultCTO*A(I,J)/CFROMcan be represented without over/underflow.CFROMmust be nonzero.MβM is INTEGER; the number of rows of the matrixA.M >= 0.NβN is INTEGER; the number of columns of the matrixA.N >= 0.AβA is COMPLEX array, dimension (LDA,N); the matrix to be multiplied byCTO/CFROM. SeeTYPEfor the storage type.LDAβLDA is INTEGER; the leading dimension of the arrayA.
If TYPE = 'G', 'L', 'U', 'H', LDA >= max(1,M);
TYPE = 'B', LDA >= KL+1;
TYPE = 'Q', LDA >= KU+1;
TYPE = 'Z', LDA >= 2*KL+KU+1.
INFOβINFO is INTEGER
0 - successful exit
<0 - if INFO = -i, the i-th argument had an illegal value.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 142 of file clascl.f.
π¦ subroutine dlascl
subroutine dlascl (character type, integer kl, integer ku, double precision
cfrom, double precision cto, integer m, integer n, double precision,
dimension( lda, * ) a, integer lda, integer info)
DLASCL multiplies a general rectangular matrix by a real scalar defined as cto/cfrom.
Purpose: DLASCL multiplies the M by N real matrix A by the real scalar CTO/CFROM. This is done without over/underflow as long as the final result CTO*A(I,J)/CFROM does not over/underflow. TYPE specifies that A may be full, upper triangular, lower triangular, upper Hessenberg, or banded. π
Parameters
TYPEβTYPE is CHARACTER*1;TYPEindices the storage type of the input matrix.= 'G': A is a full matrix.= 'L': A is a lower triangular matrix.= 'U': A is an upper triangular matrix.= 'H': A is an upper Hessenberg matrix.= 'B': A is a symmetric band matrix with lower bandwidth KL and upper bandwidth KU and with the only the lower half stored.= 'Q': A is a symmetric band matrix with lower bandwidth KL and upper bandwidth KU and with the only the upper half stored.= 'Z': A is a band matrix with lower bandwidth KL and upper bandwidth KU. See DGBTRF for storage details.
KLβKL is INTEGER; the lower bandwidth ofA. Referenced only ifTYPE = 'B','Q'or'Z'.KUβKU is INTEGER; the upper bandwidth ofA. Referenced only ifTYPE = 'B','Q'or'Z'.CFROMβCFROM is DOUBLE PRECISION.CTOβCTO is DOUBLE PRECISION. The matrixAis multiplied byCTO/CFROM.A(I,J)is computed without over/underflow if the final resultCTO*A(I,J)/CFROMcan be represented without over/underflow.CFROMmust be nonzero.MβM is INTEGER; the number of rows of the matrixA.M >= 0.NβN is INTEGER; the number of columns of the matrixA.N >= 0.AβA is DOUBLE PRECISION array, dimension (LDA,N); the matrix to be multiplied byCTO/CFROM. SeeTYPEfor the storage type.LDAβLDA is INTEGER; the leading dimension of the arrayA.
If TYPE = 'G', 'L', 'U', 'H', LDA >= max(1,M);
TYPE = 'B', LDA >= KL+1;
TYPE = 'Q', LDA >= KU+1;
TYPE = 'Z', LDA >= 2*KL+KU+1.
INFOβINFO is INTEGER
0 - successful exit
<0 - if INFO = -i, the i-th argument had an illegal value.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Definition at line 142 of file dlascl.f.
π¦ subroutine slascl
subroutine slascl (character type, integer kl, integer ku, real cfrom, real
cto, integer m, integer n, real, dimension( lda, * ) a, integer lda,
integer info)
SLASCL multiplies a general rectangular matrix by a real scalar defined as cto/cfrom.
Purpose: SLASCL multiplies the M by N real matrix A by the real scalar CTO/CFROM. This is done without over/underflow as long as the final result CTO*A(I,J)/CFROM does not over/underflow. TYPE specifies that A may be full, upper triangular, lower triangular, upper Hessenberg, or banded. πΈ
Parameters
TYPEβTYPE is CHARACTER*1;TYPEindices the storage type of the input matrix.= 'G': A is a full matrix.= 'L': A is a lower triangular matrix.= 'U': A is an upper triangular matrix.= 'H': A is an upper Hessenberg matrix.= 'B': A is a symmetric band matrix with lower bandwidth KL and upper bandwidth KU and with the only the lower half stored.= 'Q': A is a symmetric band matrix with lower bandwidth KL and upper bandwidth KU and with the only the upper half stored.= 'Z': A is a band matrix with lower bandwidth KL and upper bandwidth KU. See SGBTRF for storage details.
KLβKL is INTEGER; the lower bandwidth ofA. Referenced only ifTYPE = 'B','Q'or'Z'.KUβKU is INTEGER; the upper bandwidth ofA. Referenced only ifTYPE = 'B','Q'or'Z'.CFROMβCFROM is REAL.CTOβCTO is REAL. The matrixAis multiplied byCTO/CFROM.A(I,J)is computed without over/underflow if the final resultCTO*A(I,J)/CFROMcan be represented without over/underflow.CFROMmust be nonzero.MβM is INTEGER; the number of rows of the matrixA.M >= 0.NβN is INTEGER; the number of columns of the matrixA.N >= 0.AβA is REAL array, dimension (LDA,N); the matrix to be multiplied byCTO/CFROM. SeeTYPEfor the storage type.LDAβLDA is INTEGER; the leading dimension of the arrayA.
If TYPE = 'G', 'L', 'U', 'H', LDA >= max(1,M);
TYPE = 'B', LDA >= KL+1;
TYPE = 'Q', LDA >= KU+1;
TYPE = 'Z', LDA >= 2*KL+KU+1.
INFOβINFO is INTEGER
0 - successful exit
<0 - if INFO = -i, the i-th argument had an illegal value.
Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Tiny source footnote first: this is defined at line 142 of slascl.f. π
subroutine zlascl (character type, integer kl, integer ku, double precision cfrom, double precision cto, integer m, integer n, complex*16, dimension( lda, * ) a, integer lda, integer info)
ZLASCL is here to multiply a general rectangular matrix by a real scalar defined as cto/cfrom. Thatβs the whole assignment, bestie. π«Ά
π― Purpose
ZLASCL multiplies the M by N complex matrix A by the real scalar CTO/CFROM. It does this without over/underflow as long as the final result CTO*A(I,J)/CFROM does not over/underflow. TYPE specifies that A may be full, upper triangular, lower triangular, upper Hessenberg, or banded. β¨
π§Ύ Parameters
TYPEβCHARACTER*1.TYPEindices the storage type of the input matrix. The options are literally:'G':Ais a full matrix.'L':Ais a lower triangular matrix.'U':Ais an upper triangular matrix.'H':Ais an upper Hessenberg matrix.'B':Ais a symmetric band matrix with lower bandwidthKLand upper bandwidthKUand with the only the lower half stored.'Q':Ais a symmetric band matrix with lower bandwidthKLand upper bandwidthKUand with the only the upper half stored.'Z':Ais a band matrix with lower bandwidthKLand upper bandwidthKU. SeeZGBTRFfor storage details.
KLβINTEGER. The lower bandwidth ofA. Referenced only ifTYPE = 'B','Q'or'Z'. πKUβINTEGER. The upper bandwidth ofA. Referenced only ifTYPE = 'B','Q'or'Z'. πΈCFROMβDOUBLE PRECISION. Thatβs the type, periodt. πCTOβDOUBLE PRECISION. The matrixAis multiplied byCTO/CFROM.A(I,J)is computed without over/underflow if the final resultCTO*A(I,J)/CFROMcan be represented without over/underflow.CFROMmust be nonzero. β οΈMβINTEGER. The number of rows of the matrixA.M >= 0. πNβINTEGER. The number of columns of the matrixA.N >= 0. βAβCOMPLEX*16array, dimension(LDA,N). The matrix to be multiplied byCTO/CFROM. SeeTYPEfor the storage type. πLDAβINTEGER. The leading dimension of the arrayA. The constraints are:- If
TYPE = 'G','L','U','H', thenLDA >= max(1,M); TYPE = 'B', thenLDA >= KL+1;TYPE = 'Q', thenLDA >= KU+1;TYPE = 'Z', thenLDA >= 2*KL+KU+1.
- If
INFOβINTEGER. The vibe check:0β successful exit;<0β ifINFO = -i, the i-th argument had an illegal value. π
π Author
- Univ. of Tennessee
- Univ. of California Berkeley
- Univ. of Colorado Denver
- NAG Ltd.
Source coordinate: definition at line 142 of file zlascl.f. π¦
π Author
Generated automatically by Doxygen for LAPACK from the source code. No cap. π§
Thatβs the whole vibe β LAPACK Version 3.12.0, lascl(3), mwah π
π
π¦ where this page comes from
- arch rolling: lapack-doc 3.12.1-2 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms