Outer product of two vectors in Fortran
Unfortunately, no outer product intrinsic function available in Fortran. Outer product return a matrix from two user-provided vector a and b,
where
Fortran Intrinsic Function for Lasso thresholding rule
In Lasso solution, the thresholding rule is
Which can be achieved in Fortran by
sign(dim(abs(a),b),a)
Indenting lines in gedit under Linux 10.04 lucid-lynx
In Linux 10.04 gedit lines indent plugin no longer exists, indention shortcuts now are replace by shortcut “Tab” and “shift+Tab” instead. No extra plugin is needed anymore.
Enable Aero Snap effect under Metacity in Linux
Waffleshop’s blog http://www.thewaffleshop.net/2010/03/08/aero-snap-effect-for-metacity/ gives some terminal command which enables Linux to have Aero snap feature like windows 7. This is much faster and resource efficient than its counterpart run under Compiz. You must have Metacity and wmctrl installed. To use it shortcut is WIN+<- and WIN+->
leave a comment