Gröbner basis project
Codebase for research into Gröbner basis computation
arithmetic on rays

convenience functions for arithmetic on rays More...

ray operator* (ulonglong, ray &)
 
ray operator+ (ray &, ray &)
 
ray operator- (const ray &, const ray &)
 
ray ray_sum (const set< ray > &)
 
ulonglong operator* (const ray &, const ray &)
 
long long operator* (const ray &r, const constraint &c)
 
long long operator* (constraint &c, ray &r)
 

Detailed Description

convenience functions for arithmetic on rays

Warning
These operations are unsafe when the dimensions of two rays differ, or when the dimension of a ray differs from the number of variables in a constraint. It does not check, since the assumption is that you know what you're doing.

Function Documentation

ray operator* ( ulonglong  ,
ray  
)

Multiply every coordinate in the given ray by the given scalar.

Warning
This is unsafe when dimension is not the same. It does not check, since the assumption is that you know what you're doing.

Definition at line 211 of file skeleton.cpp.

ulonglong operator* ( const ray ,
const ray  
)

Compute the dot product on the rays.

Warning
This is unsafe when dimension is not the same. It does not check, since the assumption is that you know what you're doing.

Definition at line 222 of file skeleton.cpp.

long long operator* ( const ray r,
const constraint c 
)
inline

Compute the dot product between the ray and the constraint.

Warning
This is unsafe when dimension is not the same. It does not check, since the assumption is that you know what you're doing.

Definition at line 420 of file skeleton.hpp.

long long operator* ( constraint c,
ray r 
)
inline

Compute the dot product between the ray and the constraint.

Warning
This is unsafe when dimension is not the same. It does not check, since the assumption is that you know what you're doing.

Definition at line 429 of file skeleton.hpp.

ray operator+ ( ray ,
ray  
)

Add the two rays.

Warning
This is unsafe when dimension is not the same. It does not check, since the assumption is that you know what you're doing.

Definition at line 246 of file skeleton.cpp.

ray operator- ( const ray ,
const ray  
)

Subtract the two rays.

Warning
This is unsafe when dimension is not the same. It does not check, since the assumption is that you know what you're doing.

Definition at line 257 of file skeleton.cpp.

ray ray_sum ( const set< ray > &  )

Add all the rays in a set.

Warning
This is unsafe when dimension is not the same. It does not check, since the assumption is that you know what you're doing.

Definition at line 268 of file skeleton.cpp.