Skip to content
#

matrix

Here are 1,298 public repositories matching this topic...

SreehariRamMohan
SreehariRamMohan commented Jan 23, 2019

I am attempting to plot a periodogram in Swift of a signal using Surge.

Code:

var fft_mat = Surge.pow(Surge.fft(signal), 2)
var const_mult = 2.0/Double(signal.count)
for var i in 0..<fft_mat.count { //multiply fft_mat by const_mult
    fft_mat[i] = Float(const_mult) * fft_mat[i]
}
var pgram = fft_mat

Plotting pgram yields the following results

![ios-periodogram](https://us

NicolasHug
NicolasHug commented Apr 6, 2018

For now only strings are accepted as the measures parameter in GridSearchCV, RandomizedSearchCV, and cross_validate. It's thus impossible to use those with measures that take specific parameters as input (e.g. #156 ), or to use custom measures.

We should then accept callables in addition to strings.

Each callable should only take the predictions parameter. In order to handle measur

andrewimcclement
andrewimcclement commented Jun 6, 2019

Brent.TryFindRoot and Bisection.TryFindRoot both allow a caller to pass in a negative value for the accuracy (arguably 0 could also be problematic, but should probably be permissible). However, the implementation of each means that it never considers itself to be within the requested accuracy, therefore always returns false.

Given that an accuracy is an absolute value, ideally the caller is eit

Andlon
Andlon commented Nov 4, 2019

The current implementation of PartialEq for Matrix only works between two instances of the exact same type. We should extend it to allow comparison of matrices that have different types (owned vs sliced, static vs dynamic shapes etc.), but represent the same matrix, in a mathematical sense.

Moreover, the current implementation of PartialEq panics when the sizes of the matrices don't match

Beakerboy
Beakerboy commented Apr 10, 2019

The ObjectMatrix is a matrix made up of objects which implement the ObjectArithmetic interface. The Matrix class itself has add(), subtract() and multiply() functions, so it implements these functions. In theory, we should be able to add implements ObjectArithmetic to the Matrix class, create an ObjectMatrix of a few distinct matrices and verify that the BlockMatrix axioms function as expected.

lepaincestbon
lepaincestbon commented Sep 18, 2019

I am submitting a Feature Request

Lack of description of the "-l" lock option in the man page.
The option is proposed when you type "cmatrix -h" to get help text, but anything in man page.

Request :
Complete the man page (and add the manner to quit this lock screen.)
Or suppress this option that force you to reboot if you don't know how to "unlock"

Tested on GNU/Linux Debian 10 Buster

dendrite
APwhitehat
APwhitehat commented Jan 20, 2020

https://github.com/matrix-org/dendrite/blob/74827428bd3e11faab65f12204449c1b9469b0ae/mediaapi/fileutils/fileutils.go#L115

I realised that if we change the value of err in a defer statement, we are effectively overwriting the result of tmpFile.Close() to err which could be non-nil. This behaviour is triggered only for named return values.

For instance, if the deferred function is a fu

knome
knome commented Jan 9, 2017

All functions, macros and datatypes defined by cranium should have a prefix associated with them to avoid having cranium and another library's defined functions conflict during compilation.

For example, you defined MAX in FUNCTION_H, which may conflict with a differently defined MAX from another projects headers. Instead CRANIUM_MAX(...) should be used. You may want to do this with your templat

Improve this page

Add a description, image, and links to the matrix topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the matrix topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.