Skip to content

Instantly share code, notes, and snippets.

@amitsingh19975
amitsingh19975 / main.hpp
Last active October 6, 2020 19:54
Span implementation
namespace ub = boost::numeric::ublas;
int main(){
using namespace ub::literals;
/// dynamic span
{
// span[first: 0, last: 600, step: 4]
auto s1 = ub::span<>(0,600,4);
// span[first: 0, last: 600, step: 4]
//
// Copyright (c) 2021 Cem Bassoy, cem.bassoy@gmail.com
// Copyright (c) 2021, Amit Singh, amitsingh19975@gmail.com
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// The authors gratefully acknowledge the support of
// Google and Fraunhofer IOSB, Ettlingen, Germany