瀏覽代碼

Minor changes to `where` conditions

gingerBill 3 年之前
父節點
當前提交
9c7956be9e
共有 1 個文件被更改,包括 2 次插入2 次删除
  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]
 	}