Skip to content

Commit

Permalink
fix #948
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jun 19, 2012
1 parent 4f6d0af commit e1bd5a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions base/linalg_dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ cross(a::Vector, b::Vector) =
function _jl_generic_matvecmul{T,S}(A::StridedMatrix{T}, B::StridedVector{S})
mA = size(A, 1)
mB = size(B, 1)
if size(A, 2) != mB; error("*: argument shapes do not match"); end
C = zeros(promote_type(T,S), mA)
for k = 1:mB
b = B[k]
Expand All @@ -51,6 +52,7 @@ function _jl_generic_matmatmul{T,S}(A::StridedMatrix{T}, B::StridedMatrix{S})
(mB, nB) = size(B)
if mA == 2 && nA == 2 && nB == 2; return matmul2x2('N','N',A,B); end
if mA == 3 && nA == 3 && nB == 3; return matmul3x3('N','N',A,B); end
if nA != mB; error("*: argument shapes do not match"); end
C = zeros(promote_type(T,S), mA, nB)
z = zero(eltype(C))

Expand Down
2 changes: 1 addition & 1 deletion test/bitarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ b2 = bitrand(Bool, n1, n2)
@check_bit_operation (|) BitArray{Bool} (b1, b2)
@check_bit_operation ($) BitArray{Bool} (b1, b2)
@check_bit_operation (.*) BitArray{Bool} (b1, b2)
@check_bit_operation (*) BitArray{Bool} (b1, b1)
@check_bit_operation (*) BitArray{Bool} (b1, b1')

@timesofar "binary arithmetic"

Expand Down

0 comments on commit e1bd5a0

Please sign in to comment.