Skip to content

Commit

Permalink
Added tensor product to helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan committed Jul 7, 2024
1 parent 74549e7 commit dabc55f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ToricExtras/HelperFunctions.m2
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ permutationIsomorphic := (X, Y) -> (



-- Calculates the dimension of the cohomology group H^0(TX), i.e. the dimension of the space of global vector fields on X
-- Calculates the dimension of H^0(TX), i.e. the dimension of the space of global vector fields on X

vectorFields = method();
vectorFields := X -> (
Expand Down Expand Up @@ -87,6 +87,13 @@ primitiveCollections := X -> (
);


-- Calculates the tensor product of two sheaves on toric varieties, using Hom-tensor adjunction: F tensor G = Hom(F^*, G) = Hom(Hom(F, O), G)
-- When I tried ** it didn't work

tensor2 = method();
tensor2 := (sheaf1, sheaf2) -> (prune sheafHom(prune sheafHom(cotangentSheaf(X), sheaf(X, ring X)), cotangentSheaf(X)));



end--

Expand Down

0 comments on commit dabc55f

Please sign in to comment.