// // LAPACK++ 1.1 Linear Algebra Package 1.1 // University of Tennessee, Knoxvilee, TN. // Oak Ridge National Laboratory, Oak Ridge, TN. // Authors: J. J. Dongarra, E. Greaser, R. Pozo, D. Walker // (C) 1992-1996 All Rights Reserved // // NOTICE // // Permission to use, copy, modify, and distribute this software and // its documentation for any purpose and without fee is hereby granted // provided that the above copyright notice appear in all copies and // that both the copyright notice and this permission notice appear in // supporting documentation. // // Neither the Institutions (University of Tennessee, and Oak Ridge National // Laboratory) nor the Authors make any representations about the suitability // of this software for any purpose. This software is provided ``as is'' // without express or implied warranty. // // LAPACK++ was funded in part by the U.S. Department of Energy, the // National Science Foundation and the State of Tennessee. //#include "lapackpp.h" #include #define LA_BOUNDS_CHECK #include "lafnames.h" #include LA_LOWER_TRIANG_MAT_DOUBLE_H void mult2(double* v, int len) { for (int i=0; i>> madd(A,B) \n"; std::cout << " A: " << A.info() << std::endl; std::cout << " B: " << B.info() << std::endl; } if (A.size(0) != B.size(0) || A.size(1) != B.size(1)) { std::cerr << "LaLowerTriangMatDouble madd(LaLowerTriangMatDouble &A, LaLowerTriangMatDouble &B): \ non-conformant arrays.\n"; return LaLowerTriangMatDouble(0,0); // 0x0 matrix } int i, j; LaLowerTriangMatDouble result(A.size(0), A.size(1)); int M = A.size(0); int N = A.size(1); for (j=0; j