You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include <iostream>
#include <btas/btas.h>
typedef btas::RangeNd<CblasColMajor> RangeColMajor;
int main() {
std::vector<double> data(10);
std::vector<double> data2(10);
std::fill_n(data.begin(),10,0.0);
std::fill_n(data2.begin(),10,0.0);
auto map = btas::make_map(&data[0],RangeColMajor{5,5,1});
auto map2 = btas::make_map(&data[0],RangeColMajor{5,5,1});
auto map3 = btas::make_map(&data2[0],RangeColMajor{5,5});
contract(1.0,map,{1,2,3},map2,{4,2,3},0.0,map3,{1,4});
return 0;
};
The following errors are given with GCC 5.3.0
BTAS/btas/generic/contract.h:155:7: error: ‘class btas::TensorView<double, btas::RangeNd<(CBLAS_ORDER)1u>, btas::infinite_sequence_adaptor<double*, void>, btas::TensorViewPolicy<> >’ has no member named ‘resize’
C.resize(__zero_shape);
BTAS/btas/tensorview.h:172:20: error: use of deleted function ‘btas::detail::bool_type<true>& btas::detail::bool_type<true>::operator=(const btas::detail::bool_type<true>&)’
can_write_ = x.can_write_;
BTAS/btas/util/sequence_adaptor.h:80:35: error: invalid static_cast from type ‘const std::reference_wrapper<btas::infinite_sequence_adaptor<double*, void> >’ to type ‘std::reference_wrapper<btas::infinite_sequence_adaptor<double*, void> >::type& {aka btas::infinite_sequence_adaptor<double*, void>&}’
static_cast<type&>(*this) = static_cast<type&>(x);
followed by repeats of some combination of these errors at other parts of BTAS. Creating the TensorMaps compiles without problems.
The text was updated successfully, but these errors were encountered:
The following snippet does not compile
The following errors are given with GCC 5.3.0
followed by repeats of some combination of these errors at other parts of BTAS. Creating the TensorMaps compiles without problems.
The text was updated successfully, but these errors were encountered: