Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# zlm
Zig linear mathemathics library.
Zig linear mathematics library.

Current provides the following types:

Expand Down
6 changes: 3 additions & 3 deletions src/zlm-generic.zig
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ pub fn SpecializeOn(comptime Real: type) type {
pub const Mat2 = extern struct {
fields: [2][2]Real, // [row][col]

/// identitiy matrix
/// identity matrix
pub const identity = Mat2{
.fields = [2][2]Real{
[2]Real{ 1, 0 },
Expand All @@ -474,7 +474,7 @@ pub fn SpecializeOn(comptime Real: type) type {
pub const Mat3 = extern struct {
fields: [3][3]Real, // [row][col]

/// identitiy matrix
/// identity matrix
pub const identity = Mat3{
.fields = [3][3]Real{
[3]Real{ 1, 0, 0 },
Expand All @@ -499,7 +499,7 @@ pub fn SpecializeOn(comptime Real: type) type {
},
};

/// identitiy matrix
/// identity matrix
pub const identity = Self{
.fields = [4][4]Real{
[4]Real{ 1, 0, 0, 0 },
Expand Down
2 changes: 1 addition & 1 deletion zig.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ id: al1d3deiv60z0047a68p4vgwp1laitio6n2bp777quwu4xyc
name: zlm
main: src/zlm.zig
license: MIT
description: Zig linear mathemathics
description: Zig linear mathematics