Skip to content

Instantly share code, notes, and snippets.

@taless474
Created March 26, 2021 20:44
Show Gist options
  • Save taless474/730c5101b6f2fdfb9e5edc75faf54188 to your computer and use it in GitHub Desktop.
Save taless474/730c5101b6f2fdfb9e5edc75faf54188 to your computer and use it in GitHub Desktop.
tril_Lower
#include <iostream>
#include <blaze/Math.h>
int main()
{
blaze::DynamicMatrix<double> src{ { 3.0, 0.0, -2.0 },
{ 8.0, 0.0, 0.0 },
{ -2.0, -1.0, 4.0 } };
blaze::DynamicMatrix<double> m = blaze::LowerMatrix<blaze::DynamicMatrix<double>>(src);
std::cout << src << std::endl;
std::cout << m << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment