use_workspace(3P)
NAME
use_workspace - Provide a block of memory to be used in LAPACK routines that have a real or complex workspace parameter that can vary in length and are called through the C interfaces.
SYNOPSIS
#include <sunperf.h>
int use_workspace(char ∗ws, int length) ;
PURPOSE
Many LAPACK routines require workspace parameters to provide temporary storage for intermediate results. Some routines allow varying amounts of workspace to be passed in. A choice is made between multiple algorithms, using the most efficient method which can operate given the amount of workspace. The following lapack routines all support varying amounts of real or complex
workspace:
cgebrd cgees cgeesx cgeev cgeevx
cgegs cgegv cgehrd cgelqf cgels
cgelss cgeqlf cgeqrf cgerqf cgesvd
cgetri cggglm cgglse cggqrf cggrqf
chbevd cheev cheevd cheevx chegv
chesv chesvx chetrd chetrf chgeqz
chpevd chseqr clarfb cstedc csysv
csysvx csytrf ctrsen ctrsna cungbr
cunghr cunglq cungql cungqr cungrq
cungtr cunmbr cunmhr cunmlq cunmql
cunmqr cunmrq cunmtr dgebrd dgees
dgeesx dgeev dgeevx dgegs dgegv
dgehrd dgelqf dgels dgelss dgeqlf
dgeqrf dgerqf dgesvd dgetri dggglm
dgglse dggqrf dggrqf dhgeqz dhseqr
dlarfb dorgbr dorghr dorglq dorgql
dorgqr dorgrq dorgtr dormbr dormhr
dormlq dormql dormqr dormrq dormtr
dsbevd dspevd dstedc dstevd dsyev
dsyevd dsyevx dsygv dsysv dsysvx
dsytrd dsytrf dtrsen dtrsna sgebrd
sgees sgeesx sgeev sgeevx sgegs
sgegv sgehrd sgelqf sgels sgelss
sgeqlf sgeqrf sgerqf sgesvd sgetri
sggglm sgglse sggqrf sggrqf shgeqz
shseqr slarfb sorgbr sorghr sorglq
sorgql sorgqr sorgrq sorgtr sormbr
sormhr sormlq sormql sormqr sormrq
sormtr ssbevd sspevd sstedc sstevd
ssyev ssyevd ssyevx ssygv ssysv
ssysvx ssytrd ssytrf strsen strsna
zgebrd zgees zgeesx zgeev zgeevx
zgegs zgegv zgehrd zgelqf zgels
zgelss zgeqlf zgeqrf zgerqf zgesvd
zgetri zggglm zgglse zggqrf zggrqf
zhbevd zheev zheevd zheevx zhegv
zhesv zhesvx zhetrd zhetrf zhgeqz
zhpevd zhseqr zlarfb zstedc zsysv
zsysvx zsytrf ztrsen ztrsna zungbr
zunghr zunglq zungql zungqr zungrq
zungtr zunmbr zunmhr zunmlq zunmql
zunmqr zunmrq zunmtr
The C LAPACK interfaces do not require the user to provide workspace. Tempory storage is dynamically allocated as needed. By default, the C interfaces use the minimum amount of storage required. Therefore, the computation for the routines listed above will use the algorithm that requires the least amount of workspace. In most cases these algorithms require more time. A larger block of memory can be supplied with the use_workspace function, allowing more time-efficient algorithms to be selected.
ARGUMENTS
workspace A pointer to the block of memory to be used as workspace.
length The length of the workspace array in bytes.
SunOS 5.0 — Last change: 10 Dec 1998