Browse Source

Minor changes to `where` conditions

gingerBill 3 years ago
parent
commit
9c7956be9e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/runtime/core_builtin_matrix.odin

+ 2 - 2
core/runtime/core_builtin_matrix.odin

@@ -260,12 +260,12 @@ matrix4x4_inverse :: proc(x: $M/matrix[4, 4]$T) -> (y: M) #no_bounds_check {
 
 
 @(builtin)
-matrix_hermitian_adjoint :: proc(m: $M/matrix[$N, N]$T) -> M where intrinsics.type_is_complex(T), N >= 1, N <= 4 {
+matrix_hermitian_adjoint :: proc(m: $M/matrix[$N, N]$T) -> M where intrinsics.type_is_complex(T), N >= 1 {
 	return conj(transpose(m))
 }
 
 @(builtin)
-matrix_trace :: proc(m: $M/matrix[$N, N]$T) -> (trace: T) where N >= 1, N <= 4 {
+matrix_trace :: proc(m: $M/matrix[$N, N]$T) -> (trace: T) {
 	for i in 0..<N {
 		trace += m[i, i]
 	}