instantiation.cpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // Copyright 2015 Conrad Sanderson (http://conradsanderson.id.au)
  2. // Copyright 2015 National ICT Australia (NICTA)
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // ------------------------------------------------------------------------
  15. #include <armadillo>
  16. #include "catch.hpp"
  17. using namespace arma;
  18. TEST_CASE("instantiation_mat_1")
  19. {
  20. const uword n_rows = 5;
  21. const uword n_cols = 6;
  22. mat A(n_rows,n_cols);
  23. fmat B(n_rows,n_cols);
  24. umat C(n_rows,n_cols);
  25. imat D(n_rows,n_cols);
  26. cx_mat E(n_rows,n_cols);
  27. cx_fmat F(n_rows,n_cols);
  28. mat::fixed<5,6> G;
  29. }
  30. // TODO: colvec_instantiation
  31. // TODO: rowvec_instantiation
  32. TEST_CASE("instantiation_cube_1")
  33. {
  34. const uword n_rows = 5;
  35. const uword n_cols = 6;
  36. const uword n_slices = 2;
  37. cube A(n_rows,n_cols,n_slices);
  38. fcube B(n_rows,n_cols,n_slices);
  39. ucube C(n_rows,n_cols,n_slices);
  40. icube D(n_rows,n_cols,n_slices);
  41. cx_cube E(n_rows,n_cols,n_slices);
  42. cx_fcube F(n_rows,n_cols,n_slices);
  43. cube::fixed<5,6,2> G;
  44. }
  45. // TODO: field_instantiation 1D 2D 3D
  46. // TODO: spmat_instantiation