# HG changeset patch # User Chris Cannam # Date 1383406897 0 # Node ID ef4d544b80abc36d1abbf1359b3c532e3e5aa558 # Parent 061dc568cfd8a0d4661f0acfe8f3b7543ff6baa6 Add another _t type suffix diff -r 061dc568cfd8 -r ef4d544b80ab src/may/matrix/complex.yeti --- a/src/may/matrix/complex.yeti Sat Nov 02 15:36:01 2013 +0000 +++ b/src/may/matrix/complex.yeti Sat Nov 02 15:41:37 2013 +0000 @@ -5,7 +5,7 @@ vec = load may.vector; cpx = load may.complex; -typedef opaque complexmatrix = { +typedef opaque complexmatrix_t = { .size is { .rows is number, .columns is number }, .real is Some mat.matrix_t | None (), .imaginary is Some mat.matrix_t | None () @@ -320,44 +320,44 @@ newComplexColumnVector, enumerate, } as { - size is complexmatrix -> { .rows is number, .columns is number }, - width is complexmatrix -> number, - height is complexmatrix -> number, - density is complexmatrix -> number, - nonZeroValues is complexmatrix -> number, - at is complexmatrix -> number -> number -> cpx.complex_t, - getColumn is number -> complexmatrix -> array, - getRow is number -> complexmatrix -> array, - getDiagonal is number -> complexmatrix -> array, - asRows is complexmatrix -> list>, - asColumns is complexmatrix -> list>, - generate is (number -> number -> cpx.complex_t) -> { .rows is number, .columns is number } -> complexmatrix, - constMatrix is cpx.complex_t -> { .rows is number, .columns is number } -> complexmatrix, - zeroMatrix is { .rows is number, .columns is number } -> complexmatrix, - equal is complexmatrix -> complexmatrix -> boolean, - conjugateTransposed is complexmatrix -> complexmatrix, - transposed is complexmatrix -> complexmatrix, - flipped is complexmatrix -> complexmatrix, - toSparse is complexmatrix -> complexmatrix, - toDense is complexmatrix -> complexmatrix, - scaled is number -> complexmatrix -> complexmatrix, - sum is complexmatrix -> complexmatrix -> complexmatrix, - difference is complexmatrix -> complexmatrix -> complexmatrix, - abs is complexmatrix -> mat.matrix_t, - product is complexmatrix -> complexmatrix -> complexmatrix, - entryWiseProduct is complexmatrix -> complexmatrix -> complexmatrix, - complex is mat.matrix_t -> mat.matrix_t -> complexmatrix, - fromReal is mat.matrix_t -> complexmatrix, - fromImaginary is mat.matrix_t -> complexmatrix, - real is complexmatrix -> mat.matrix_t, - imaginary is complexmatrix -> mat.matrix_t, - magnitudes is complexmatrix -> mat.matrix_t, - angles is complexmatrix -> mat.matrix_t, - rowSlice is complexmatrix -> number -> number -> complexmatrix, - columnSlice is complexmatrix -> number -> number -> complexmatrix, - newComplexMatrix is (ColumnMajor () | RowMajor ()) -> list?> -> complexmatrix, - newComplexRowVector is list? -> complexmatrix, - newComplexColumnVector is list? -> complexmatrix, - enumerate is complexmatrix -> list<{ .i is number, .j is number, .v is cpx.complex_t }>, + size is complexmatrix_t -> { .rows is number, .columns is number }, + width is complexmatrix_t -> number, + height is complexmatrix_t -> number, + density is complexmatrix_t -> number, + nonZeroValues is complexmatrix_t -> number, + at is complexmatrix_t -> number -> number -> cpx.complex_t, + getColumn is number -> complexmatrix_t -> array, + getRow is number -> complexmatrix_t -> array, + getDiagonal is number -> complexmatrix_t -> array, + asRows is complexmatrix_t -> list>, + asColumns is complexmatrix_t -> list>, + generate is (number -> number -> cpx.complex_t) -> { .rows is number, .columns is number } -> complexmatrix_t, + constMatrix is cpx.complex_t -> { .rows is number, .columns is number } -> complexmatrix_t, + zeroMatrix is { .rows is number, .columns is number } -> complexmatrix_t, + equal is complexmatrix_t -> complexmatrix_t -> boolean, + conjugateTransposed is complexmatrix_t -> complexmatrix_t, + transposed is complexmatrix_t -> complexmatrix_t, + flipped is complexmatrix_t -> complexmatrix_t, + toSparse is complexmatrix_t -> complexmatrix_t, + toDense is complexmatrix_t -> complexmatrix_t, + scaled is number -> complexmatrix_t -> complexmatrix_t, + sum is complexmatrix_t -> complexmatrix_t -> complexmatrix_t, + difference is complexmatrix_t -> complexmatrix_t -> complexmatrix_t, + abs is complexmatrix_t -> mat.matrix_t, + product is complexmatrix_t -> complexmatrix_t -> complexmatrix_t, + entryWiseProduct is complexmatrix_t -> complexmatrix_t -> complexmatrix_t, + complex is mat.matrix_t -> mat.matrix_t -> complexmatrix_t, + fromReal is mat.matrix_t -> complexmatrix_t, + fromImaginary is mat.matrix_t -> complexmatrix_t, + real is complexmatrix_t -> mat.matrix_t, + imaginary is complexmatrix_t -> mat.matrix_t, + magnitudes is complexmatrix_t -> mat.matrix_t, + angles is complexmatrix_t -> mat.matrix_t, + rowSlice is complexmatrix_t -> number -> number -> complexmatrix_t, + columnSlice is complexmatrix_t -> number -> number -> complexmatrix_t, + newComplexMatrix is (ColumnMajor () | RowMajor ()) -> list?> -> complexmatrix_t, + newComplexRowVector is list? -> complexmatrix_t, + newComplexColumnVector is list? -> complexmatrix_t, + enumerate is complexmatrix_t -> list<{ .i is number, .j is number, .v is cpx.complex_t }>, }