separate functions for extracting diagonal matrix and vector, functions for extracting lower and upper triangular matrices.
separate functions for extracting diagonal matrix and vector, functions for extracting lower and upper triangular matrices.

achanda/scirust,tempbottle/scirust,indigits/scirust,daniel-vainsencher/scirust,Sean1708/scirust