terrylyons / libalgebra

This C++ headers only library provides tools for manipulating elements of algebras; the tensor algebra, free lie algebra etc. Early versions can be found in sourceforge. It is capable of calculations over many rings including the arbitrary precision rationals from gmp/mpir . The associated library libalgebra_tests has many examples of how to use the code. the pypy package wraps a version of it - with a simple interface (and vastly reduced functionality)
12 stars 2 forks source link

changed one pointer assignment with a __restrict to a __declspec(rest… #86

Open terrylyons opened 1 year ago

terrylyons commented 1 year ago

…rict) on the return type of the two function tile_ptr() methods

inakleinbottle commented 1 year ago

Unfortunately I was wrong about GCC having an equivalent function attribute for restricted return values. This needs a bit more thought. I'll comment out the offending __restrict for now

terrylyons commented 1 year ago

Can one just declare the return type to include p__restrict ?

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: inakleinbottle @.> Sent: Friday, May 5, 2023 9:33:35 AM To: terrylyons/libalgebra @.> Cc: Terry Lyons @.>; Author @.> Subject: Re: [terrylyons/libalgebra] changed one pointer assignment with a restrict to a declspec(rest… (PR #86)

Unfortunately I was wrong about GCC having an equivalent function attribute for restricted return values. This needs a bit more thought. I'll comment out the offending __restrict for now

— Reply to this email directly, view it on GitHubhttps://github.com/terrylyons/libalgebra/pull/86#issuecomment-1535917358, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABQWN6YJ2URKB3SWPWUTDCDXES3N7ANCNFSM6AAAAAAXVNZGLA. You are receiving this because you authored the thread.Message ID: @.***>

inakleinbottle commented 1 year ago

yes maybe. I need to check that this works. I'll let you know