Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add != Zeros overload for Matrix, Vector.
- Loading branch information
Edward Rosten
committed
Sep 11, 2012
1 parent
b3d2e99
commit 6726662
Showing
6 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include "regressions/regression.h" | ||
|
||
int main() | ||
{ | ||
Vector<5> v1 = Zeros; | ||
cout << v1 << endl; | ||
|
||
Vector<> v2 = Zeros(3); | ||
cout << v2 << endl; | ||
|
||
Matrix<3,6> m1 = Zeros; | ||
cout << m1 << endl; | ||
|
||
Matrix<> m2 = Zeros(2,3); | ||
cout << m2 << endl; | ||
|
||
|
||
Vector<4> v3 = Zeros; | ||
cout << (v3 != Zeros) << endl; | ||
|
||
v3 = Ones; | ||
cout << (v3 != Zeros) << endl; | ||
|
||
Matrix<4> m3 = Zeros; | ||
cout << (m3 != Zeros) << endl; | ||
m3 = Ones; | ||
cout << (m3 != Zeros) << endl; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
0 0 0 0 0 | ||
|
||
0 0 0 | ||
|
||
0 0 0 0 0 0 | ||
0 0 0 0 0 0 | ||
0 0 0 0 0 0 | ||
|
||
0 0 0 | ||
0 0 0 | ||
|
||
0 | ||
1 | ||
0 | ||
1 |