Source: https://qcfinance.in/BasicMatrixAndVectorFunctionsInVBA-V1_3.pdf