@@ -66,18 +66,18 @@ function real_convert(::Type{T}, x::Number) where {T}
6666 return T (x)
6767end
6868function real_convert (:: Type{T} , x:: AbstractMatrix ) where {T}
69- return GBMatrix {T, T} (x)
69+ return GBMatrix {T,T} (x)
7070end
7171
72- function real_convert (:: Type{T} , x:: GBMatrix{T, T} ) where {T}
72+ function real_convert (:: Type{T} , x:: SPARSE_MATRIX{ T} ) where {T}
7373 return x
7474end
7575
76- function real_convert (:: Type{T} , x:: GBVector{T, T} ) where {T}
76+ function real_convert (:: Type{T} , x:: SPARSE_VECTOR{ T} ) where {T}
7777 return x
7878end
7979function real_convert (:: Type{T} , x:: AbstractVector ) where {T}
80- return GBVector {T, T} (x)
80+ return SPARSE_VECTOR { T} (x)
8181end
8282
8383function _conic_form! (context:: Context{T} , x:: MultiplyAtom ) where {T}
@@ -158,7 +158,7 @@ function _conic_form!(context::Context{T}, x::MultiplyAtom) where {T}
158158end
159159
160160# _id(T, n) = Diagonal(one(T)*I, n)
161- _id (T, n) = gbidentity (T, n)
161+ _id (T, n) = spidentity (T, n)
162162
163163function * (x:: AbstractExpr , y:: AbstractExpr )
164164 if isequal (x, y) && x. size == (1 , 1 )
171171* (x:: AbstractExpr , y:: Value ) = MultiplyAtom (x, constant (y))
172172/ (x:: AbstractExpr , y:: Value ) = MultiplyAtom (x, constant (1 ./ y))
173173
174+ # ambiguity
175+ function Base.:(* )(
176+ x:: Convex.AbstractExpr ,
177+ y:: Union {
178+ LinearAlgebra. Transpose{
179+ <: Any ,
180+ <: SuiteSparseGraphBLAS.AbstractGBArray{T,F,O} ,
181+ },
182+ SuiteSparseGraphBLAS. AbstractGBArray{T,F,O},
183+ },
184+ ) where {T,F,O}
185+ return MultiplyAtom (x, constant (y))
186+ end
187+ function Base.:(* )(
188+ x:: Union {
189+ LinearAlgebra. Transpose{
190+ <: Any ,
191+ <: SuiteSparseGraphBLAS.AbstractGBArray{T,F,O} ,
192+ },
193+ SuiteSparseGraphBLAS. AbstractGBArray{T,F,O},
194+ },
195+ y:: Convex.AbstractExpr ,
196+ ) where {T,F,O}
197+ return MultiplyAtom (constant (x), y)
198+ end
199+
174200function dotmultiply (x, y)
175201 if vexity (x) != ConstVexity ()
176202 if vexity (y) != ConstVexity ()
0 commit comments