Commit 6aef1043 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

tensorEval works and gives correct result

parent 59c53736
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ public:

		const VectorSizeType& dimensions_;
		const SizeType ins_;
		const ComplexOrRealType& value_;
		const ComplexOrRealType value_;
	};

	class SetToRandom : public exatn::TensorMethod {
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ int main(int argc, char **argv)
	}

	vt[1]->setToConstant(1.5);
	vt[2]->setToConstant(3.3);
	vt[2]->setToConstant(0.0);

	Mera::SrepStatement<double> srepEq(str);
	Mera::NameToIndexLut<TensorType> nameToIndexLut(vt);