summary refs log tree commit diff stats
path: root/compiler/pathutils.nim
Commit message (Expand)AuthorAgeFilesLines
* Initial version of the hot-code reloading support for native targets (#10729)zah2019-02-261-0/+4
* [pathutils] add AnyPath; add `$`; lift arbitrary API restrictions (#10021)Timothee Cour2018-12-181-8/+11
* os.nim: big refactoring, use the new pathnorm that was extracted by compiler/...Araq2018-12-131-161/+10
* pathutils: remove dead codeAraq2018-11-211-17/+0
* fixes #9507Araq2018-10-251-8/+10
* Allow subpaths of names of length 1Jörg Wollenschläger2018-09-151-1/+1
* nim doc: fixes cross-link generation when --out is usedAraq2018-09-101-1/+1
* 'nim doc': fixes index generation regressionAraq2018-09-081-2/+2
* make tests green againAraq2018-09-071-3/+8
* added a test for 'nim doc'Andreas Rumpf2018-09-071-2/+3
* compiler refactoring; use typesafe path handing; docgen: render symbols betwe...Andreas Rumpf2018-09-071-0/+254
Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
discard """
output: "0"
"""

import matrix, matrixalgo

import typetraits # XXX: this should be removed

var m: Matrix[3, 3, int]
var projectionMatrix: Matrix[4, 4, float]

echo m.transposed.determinant
setPerspectiveProjection projectionMatrix

template ok(x) = assert x
template no(x) = assert(not x)

static:
  ok projectionMatrix is AnyTransform3D
  no m is AnyTransform3D
  
  type SquareStringMatrix = Matrix[5, 5, string]
  
  ok SquareStringMatrix is AnyMatrix
  ok SquareStringMatrix is AnySquareMatrix
  no SquareStringMatrix is AnyTransform3D
  
  ok Matrix[5, 10, int] is AnyMatrix
  no Matrix[7, 15, float] is AnySquareMatrix
  no Matrix[4, 4, int] is AnyTransform3D