Skip to content

Commit 1cc3c29

Browse files
committed
Provide vararg UnionOfRows/UnionOfColumns
Import MatricesForHomalg.UnionOfRows/UnionOfColumns and add vararg overloads that infer ring and dimensions from the first matrix. This simplifies constructing unions of rows/columns. Bump version of LinearAlgebraForCAP to V0.1.11
1 parent dd4c5c1 commit 1cc3c29

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
]
88

99
# Transpiled from GAP's LinearAlgebraForCAP v2025.07-03
10-
version = "0.1.10"
10+
version = "0.1.11"
1111

1212
[deps]
1313
MatricesForHomalg = "29b9b1b6-efa6-450e-8188-a5a2c25df071"

src/pre_init.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ function ConvertColumnToMatrix( mat::MatricesForHomalg.TypeOfMatrixForHomalg, r:
5959

6060
end
6161

62+
import MatricesForHomalg.UnionOfRows
63+
import MatricesForHomalg.UnionOfColumns
64+
65+
function UnionOfRows(list::MatricesForHomalg.TypeOfMatrixForHomalg...)::MatricesForHomalg.TypeOfMatrixForHomalg
66+
UnionOfRows(HomalgRing(list[1]), NrCols(list[1]), list)
67+
end
68+
69+
function UnionOfColumns(list::MatricesForHomalg.TypeOfMatrixForHomalg...)::MatricesForHomalg.TypeOfMatrixForHomalg
70+
UnionOfColumns(HomalgRing(list[1]), NrRows(list[1]), list)
71+
end
72+
6273
function EntriesOfHomalgMatrix( mat::MatricesForHomalg.TypeOfMatrixForHomalg )
6374
vcat(EntriesOfHomalgMatrixAsListList(mat)...)
6475
end

0 commit comments

Comments
 (0)