Commit 3dc0f5a7 authored by Davis King's avatar Davis King

Increased the max size matrix which will allocate its memory on the stack

from 128 bytes to 256 bytes.
parent 748ec4cb
...@@ -72,7 +72,7 @@ namespace dlib ...@@ -72,7 +72,7 @@ namespace dlib
struct row_major_layout struct row_major_layout
{ {
// if a matrix is bigger than this many bytes then don't put it on the stack // if a matrix is bigger than this many bytes then don't put it on the stack
const static size_t max_stack_based_size = 128; const static size_t max_stack_based_size = 256;
// this is a hack to avoid a compile time error in visual studio 8. I would just // this is a hack to avoid a compile time error in visual studio 8. I would just
// use sizeof(T) and be done with it but that won't compile. The idea here // use sizeof(T) and be done with it but that won't compile. The idea here
...@@ -484,7 +484,7 @@ namespace dlib ...@@ -484,7 +484,7 @@ namespace dlib
struct column_major_layout struct column_major_layout
{ {
// if a matrix is bigger than this many bytes then don't put it on the stack // if a matrix is bigger than this many bytes then don't put it on the stack
const static size_t max_stack_based_size = 128; const static size_t max_stack_based_size = 256;
// this is a hack to avoid a compile time error in visual studio 8. I would just // this is a hack to avoid a compile time error in visual studio 8. I would just
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment