@@ -112,9 +112,13 @@ for relty in (Float32, Float64, BigFloat), elty in (relty, Complex{relty})
112112 debug && println (" Round,float,trunc,ceil" )
113113 if elty <: BlasReal
114114 @test floor (Int,T) == Bidiagonal (floor (Int,T. dv),floor (Int,T. ev),T. isupper)
115+ @test isa (floor (Int,T), Bidiagonal)
115116 @test trunc (Int,T) == Bidiagonal (trunc (Int,T. dv),trunc (Int,T. ev),T. isupper)
117+ @test isa (trunc (Int,T), Bidiagonal)
116118 @test round (Int,T) == Bidiagonal (round (Int,T. dv),round (Int,T. ev),T. isupper)
119+ @test isa (round (Int,T), Bidiagonal)
117120 @test ceil (Int,T) == Bidiagonal (ceil (Int,T. dv),ceil (Int,T. ev),T. isupper)
121+ @test isa (ceil (Int,T), Bidiagonal)
118122 end
119123
120124 debug && println (" Generic Mat-vec ops" )
184188A = Bidiagonal (ones (Float32,10 ),ones (Float32,9 ),true )
185189B = rand (Float64,10 ,10 )
186190C = Tridiagonal (rand (Float64,9 ),rand (Float64,10 ),rand (Float64,9 ))
191+ @test promote_rule (Matrix{Float64}, Bidiagonal{Float64}) == Matrix{Float64}
187192@test promote (B,A) == (B,convert (Matrix{Float64},full (A)))
188193@test promote (C,A) == (C,Tridiagonal (zeros (Float64,9 ),convert (Vector{Float64},A. dv),convert (Vector{Float64},A. ev)))
0 commit comments