Skip to content

Instantly share code, notes, and snippets.

@m-chaturvedi
Created August 30, 2017 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m-chaturvedi/5eb211e43b55943d3e86f7f13cd429b3 to your computer and use it in GitHub Desktop.
Save m-chaturvedi/5eb211e43b55943d3e86f7f13cd429b3 to your computer and use it in GitHub Desktop.
// clang++-3.9 -fsanitize=undefined main.cpp && ./a.out
#include <bits/stdc++.h>
#include "Eigen/Dense"
using namespace std;
using namespace Eigen;
int main(){
MatrixXd A(0,3);
VectorXd B(0);
MatrixXd C;
C = A.transpose() * B;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment