Somebody asked how one may count the number of floating point operations in a MATLAB program. Prior to version 6, one used to be able to do this with the command flops
, but this command is no longer available with the newer versions of MATLAB.flops
is a relic from the LINPACK days of MATLAB (LINPACK has since been replaced by LAPACK). With the use of LAPACK in MATLAB, it will be more approrpiate to usetic
andtoc
to count elapsed CPU time instead (cf.tic
,toc
). If you're interested to know whyflops
is obsolete, you may wish to read the exchanges in NA digest regardingflops
. Nevertheless, if you feel that you really do need a command to count floating point operations in MATLAB, what you can do is to install Tom Minka's Lightspeed MATLAB toolbox and use the flops counting operations therein.
Nube de etiquetas
acertijo
Agricultura
algebra
álgebra
algoritmo
Antropología
aritmética
Arnoldi
astronomía
biología
biotecnología
Canada
cerebro
ciencia
complejidad
complex
computo
concentración
conjugate
cross
cuántica
datos
dot
eigenvalue
ejercicio
equation
espacio
evolución
Feynman
Física
flops
Galerkin
geología
GMP
Gram-Schmidt
Hermitian
historia
Inglaterra
Internet
iterative
Krylov
Lanczos
lenguaje
lineal
linear
Matlab
matrices
matrix
maya
mechanics
memoria
Mersenne
method
metric
mexica
México
mingw
multiplicación
náhuatl
NASA
normal
NP
numeric
numero
operador
Paleontología
pde
pi
power
precisión arbitraria
primo
product
python
química
quotient
Rayleigh
Republica Domincana
rotation
Rusia
software
soroban
sparse matrix
spectral
square
subspace
symmetric
system
tecnología
Trachtenberg
transgénicos
transpose
trigonometry
unitary
vector
Mostrando las entradas con la etiqueta Matlab. Mostrar todas las entradas
Mostrando las entradas con la etiqueta Matlab. Mostrar todas las entradas
2011-02-17
flops in Matlab
2011-02-13
x = A \ b; in Matlab
x = A \ b;
- Is A square?
no => use QR to solve least squares problem.
- Is A triangular or permuted triangular?
yes => sparse triangular solve
- Is A symmetric with positive diagonal elements?
yes => attempt Cholesky after symmetric minimum degree.
- Otherwise
=> use LU on A (:, colamd(A))
Suscribirse a:
Entradas (Atom)