Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (20 sloc) 622 Bytes

STL(-like) extensions

Out-of-place functions

  • min/max

    cppmat::array<double> C = cppmat::min(A, B);


  • Formatted print

    If cppmat is loaded one can also view STL-vectors as easily as

    std::cout << A << std::endl;

  • Delete item

    A = cppmat::del(A, -1);

  • argsort

    std::vector<size_t> idx = cppmat::argsort(A);

  • linspace

    std::vector<double> A = cppmat::linspace(0.0, 1.0, 11);

  • min/max

    std::vector<double> C = cppmat::min(A, B);

You can’t perform that action at this time.