MyraMath
potrf_singular


Source: tests/dense/potrf_singular.cpp

1 // ========================================================================= //
2 // This file is part of MyraMath, copyright (c) 2014-2019 by Ryan A Chilton //
3 // and distributed by MyraCore, LLC. See LICENSE.txt for license terms. //
4 // ========================================================================= //
5 
11 // Containers.
12 #include <myramath/dense/Matrix.h>
13 
14 // Algorithms.
15 #include <myramath/dense/potrf.h>
16 
17 // Reporting.
18 #include <tests/myratest.h>
19 
20 using namespace myra;
21 
22 ADD_TEST("potrf_singular","[dense][lapack]")
23  {
24  auto A = Matrix<double>::zeros(2,2);
25  REQUIRE_EXCEPTION( potrf_inplace('L','R',A); );
26  }
27 
Cholesky factorization routines for positive definite matrices.
static Matrix< Number > zeros(int I, int J)
Generates a zeros Matrix of specified size.
Definition: Matrix.cpp:357
Definition: syntax.dox:1
General purpose dense matrix container, O(i*j) storage.


Results: [PASS]


Go back to Summary of /test programs.